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
- ListViewSelectEventArgs.cs
- DataBinder.cs
- OutOfMemoryException.cs
- ConstructorNeedsTagAttribute.cs
- PreviewPrintController.cs
- MILUtilities.cs
- activationcontext.cs
- SelectionWordBreaker.cs
- EventLogger.cs
- CompiledQueryCacheKey.cs
- Literal.cs
- CompoundFileStorageReference.cs
- ObjectDataSourceEventArgs.cs
- WebEvents.cs
- DataError.cs
- EarlyBoundInfo.cs
- HttpContext.cs
- ExtentCqlBlock.cs
- SerializationInfoEnumerator.cs
- NullRuntimeConfig.cs
- FileReservationCollection.cs
- NativeObjectSecurity.cs
- Padding.cs
- RequestCachePolicyConverter.cs
- FusionWrap.cs
- DbTransaction.cs
- Parameter.cs
- CodeParameterDeclarationExpression.cs
- GeneratedContractType.cs
- CompilerErrorCollection.cs
- TableSectionStyle.cs
- BridgeDataReader.cs
- InputLanguage.cs
- FormatException.cs
- PageContentAsyncResult.cs
- SystemIPv4InterfaceProperties.cs
- CookieProtection.cs
- AnonymousIdentificationSection.cs
- ComboBox.cs
- KeyToListMap.cs
- ServiceEndpointCollection.cs
- DurationConverter.cs
- SafeFileMappingHandle.cs
- DataServiceExpressionVisitor.cs
- ExceptionHandlersDesigner.cs
- ManagedIStream.cs
- XamlFigureLengthSerializer.cs
- FontEditor.cs
- ColorConverter.cs
- NativeMethods.cs
- WindowsTooltip.cs
- Effect.cs
- HttpDebugHandler.cs
- Path.cs
- figurelengthconverter.cs
- DriveInfo.cs
- ClientFormsIdentity.cs
- StringTraceRecord.cs
- TypeDelegator.cs
- RegexReplacement.cs
- SevenBitStream.cs
- KeyInterop.cs
- Tracking.cs
- RegisteredArrayDeclaration.cs
- FileSystemWatcher.cs
- IPCCacheManager.cs
- XPathDocumentIterator.cs
- Rectangle.cs
- PreviewKeyDownEventArgs.cs
- MatrixStack.cs
- SimpleColumnProvider.cs
- TextControlDesigner.cs
- DateTimePicker.cs
- TextBoxAutoCompleteSourceConverter.cs
- RegexFCD.cs
- SafeNativeMethods.cs
- WebScriptMetadataMessageEncoderFactory.cs
- DiscoveryServiceExtension.cs
- TrustManagerMoreInformation.cs
- ProxyManager.cs
- PropertyDescriptorComparer.cs
- DockPattern.cs
- CompareInfo.cs
- DragEventArgs.cs
- ScriptComponentDescriptor.cs
- DoubleUtil.cs
- StrokeCollectionDefaultValueFactory.cs
- PrtCap_Reader.cs
- Maps.cs
- SslStream.cs
- ChangePassword.cs
- SqlDataSourceAdvancedOptionsForm.cs
- DbReferenceCollection.cs
- mansign.cs
- SessionParameter.cs
- NumberFunctions.cs
- ContentPlaceHolderDesigner.cs
- InfoCardAsymmetricCrypto.cs
- _emptywebproxy.cs
- ErrorFormatterPage.cs