Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Protocols / HttpPostServerProtocol.cs / 1305376 / HttpPostServerProtocol.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Protocols { internal class HttpPostServerProtocolFactory : ServerProtocolFactory { protected override ServerProtocol CreateIfRequestCompatible(HttpRequest request){ if (request.PathInfo.Length < 2) return null; if (request.HttpMethod != "POST") // MethodNotAllowed = 405, return new UnsupportedRequestProtocol(405); return new HttpPostServerProtocol(); } } internal class HttpPostServerProtocol : HttpServerProtocol { internal HttpPostServerProtocol() : base(true) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Protocols { internal class HttpPostServerProtocolFactory : ServerProtocolFactory { protected override ServerProtocol CreateIfRequestCompatible(HttpRequest request){ if (request.PathInfo.Length < 2) return null; if (request.HttpMethod != "POST") // MethodNotAllowed = 405, return new UnsupportedRequestProtocol(405); return new HttpPostServerProtocol(); } } internal class HttpPostServerProtocol : HttpServerProtocol { internal HttpPostServerProtocol() : base(true) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListQueryResults.cs
- NativeMethods.cs
- CategoryNameCollection.cs
- TextBoxAutoCompleteSourceConverter.cs
- SqlWorkflowPersistenceService.cs
- DataBindingHandlerAttribute.cs
- TreeWalker.cs
- PolyLineSegmentFigureLogic.cs
- LazyTextWriterCreator.cs
- MobileControlBuilder.cs
- HttpCapabilitiesBase.cs
- ImportContext.cs
- CollectionView.cs
- TypeToStringValueConverter.cs
- documentsequencetextview.cs
- XmlJsonReader.cs
- StreamInfo.cs
- SmtpReplyReaderFactory.cs
- TypeUtil.cs
- XmlAttributeCollection.cs
- ToolstripProfessionalRenderer.cs
- PageParserFilter.cs
- OLEDB_Util.cs
- CustomBindingCollectionElement.cs
- EnterpriseServicesHelper.cs
- glyphs.cs
- ToolboxDataAttribute.cs
- PanelStyle.cs
- PropertyDescriptorGridEntry.cs
- ThrowHelper.cs
- LocalClientSecuritySettings.cs
- ItemsControl.cs
- ScriptReferenceEventArgs.cs
- TypedDataSetSchemaImporterExtension.cs
- NetworkInformationException.cs
- RegionData.cs
- EntityDesignPluralizationHandler.cs
- DataDocumentXPathNavigator.cs
- StrongNameIdentityPermission.cs
- FilterFactory.cs
- InternalPolicyElement.cs
- AttachedAnnotationChangedEventArgs.cs
- CacheHelper.cs
- WriteableBitmap.cs
- Internal.cs
- SerializationObjectManager.cs
- CountdownEvent.cs
- VirtualPathData.cs
- VisualTransition.cs
- DbModificationClause.cs
- TableRowCollection.cs
- WebEventTraceProvider.cs
- RectAnimationClockResource.cs
- WebPartTracker.cs
- AnnotationHighlightLayer.cs
- ScriptServiceAttribute.cs
- Query.cs
- TemplateKey.cs
- DocumentPageView.cs
- PreservationFileReader.cs
- FlowDocumentFormatter.cs
- LocatorGroup.cs
- XmlSchemaProviderAttribute.cs
- MembershipPasswordException.cs
- EdmPropertyAttribute.cs
- DataServiceRequest.cs
- TdsEnums.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DataSourceView.cs
- StaticExtensionConverter.cs
- SoapObjectReader.cs
- NullableConverter.cs
- FieldTemplateUserControl.cs
- DataGridViewHeaderCell.cs
- CellTreeNodeVisitors.cs
- GatewayDefinition.cs
- DeviceContexts.cs
- UriParserTemplates.cs
- CodeDomLocalizationProvider.cs
- VirtualizingPanel.cs
- StatusBarPanel.cs
- BackgroundFormatInfo.cs
- QueryInterceptorAttribute.cs
- MimeFormatter.cs
- TextTreeUndo.cs
- NotificationContext.cs
- NamespaceMapping.cs
- ComUdtElement.cs
- ConfigXmlText.cs
- ExpressionNode.cs
- UserPersonalizationStateInfo.cs
- BooleanAnimationBase.cs
- OrderPreservingPipeliningMergeHelper.cs
- ColorConvertedBitmap.cs
- ObjectDataSourceStatusEventArgs.cs
- DocobjHost.cs
- OnOperation.cs
- XmlSigningNodeWriter.cs
- ScriptHandlerFactory.cs
- DataRelationPropertyDescriptor.cs