Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Services / Web / System / Web / Services / Protocols / HttpGetServerProtocol.cs / 1305376 / HttpGetServerProtocol.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Services.Protocols { internal class HttpGetServerProtocolFactory : ServerProtocolFactory { protected override ServerProtocol CreateIfRequestCompatible(HttpRequest request){ if (request.PathInfo.Length < 2) return null; if (request.HttpMethod != "GET") // MethodNotAllowed = 405, return new UnsupportedRequestProtocol(405); return new HttpGetServerProtocol(); } } internal class HttpGetServerProtocol : HttpServerProtocol { internal HttpGetServerProtocol() : base(false) { } } } // 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 HttpGetServerProtocolFactory : ServerProtocolFactory { protected override ServerProtocol CreateIfRequestCompatible(HttpRequest request){ if (request.PathInfo.Length < 2) return null; if (request.HttpMethod != "GET") // MethodNotAllowed = 405, return new UnsupportedRequestProtocol(405); return new HttpGetServerProtocol(); } } internal class HttpGetServerProtocol : HttpServerProtocol { internal HttpGetServerProtocol() : base(false) { } } } // 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
- HttpHandlersSection.cs
- BinaryMethodMessage.cs
- DateTimeStorage.cs
- ThreadExceptionEvent.cs
- SimpleWorkerRequest.cs
- SafeSystemMetrics.cs
- PersianCalendar.cs
- ResourceContainer.cs
- XmlDataLoader.cs
- DbMetaDataColumnNames.cs
- ConnectionPoint.cs
- JournalEntry.cs
- CommonProperties.cs
- IsolatedStorageFile.cs
- StringKeyFrameCollection.cs
- TagPrefixAttribute.cs
- SHA1CryptoServiceProvider.cs
- IsolatedStoragePermission.cs
- LocalIdKeyIdentifierClause.cs
- TransactionBridgeSection.cs
- PKCS1MaskGenerationMethod.cs
- InstanceCreationEditor.cs
- WebBrowserNavigatingEventHandler.cs
- TextBox.cs
- CanonicalFormWriter.cs
- ParagraphResult.cs
- UnsafeNativeMethodsMilCoreApi.cs
- InternalSendMessage.cs
- HtmlInputFile.cs
- CompiledIdentityConstraint.cs
- SerializationFieldInfo.cs
- DrawingContext.cs
- TypeDelegator.cs
- ReflectEventDescriptor.cs
- PropertyCondition.cs
- ShowExpandedMultiValueConverter.cs
- DataGridItemCollection.cs
- RegistryKey.cs
- RecognitionResult.cs
- NativeConfigurationLoader.cs
- DescendantBaseQuery.cs
- Transactions.cs
- CodeExpressionRuleDeclaration.cs
- Variant.cs
- SelectionHighlightInfo.cs
- SHA256Cng.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- HyperLinkField.cs
- FrameSecurityDescriptor.cs
- MeshGeometry3D.cs
- Imaging.cs
- ImageMapEventArgs.cs
- OdbcFactory.cs
- SafeNativeMethodsCLR.cs
- WebConfigurationHost.cs
- XamlReader.cs
- ModuleElement.cs
- IsolatedStorageFileStream.cs
- CodeIdentifiers.cs
- RoutedEventArgs.cs
- MetaTable.cs
- InputReport.cs
- PropertyValidationContext.cs
- DropShadowBitmapEffect.cs
- SByteStorage.cs
- InstalledFontCollection.cs
- ExecutionEngineException.cs
- TextProviderWrapper.cs
- codemethodreferenceexpression.cs
- DecimalFormatter.cs
- WebPartEditVerb.cs
- SafeRightsManagementSessionHandle.cs
- SchemaImporterExtensionElement.cs
- X509CertificateTokenFactoryCredential.cs
- _TLSstream.cs
- ToolStripInSituService.cs
- SizeKeyFrameCollection.cs
- AutomationIdentifier.cs
- SessionPageStatePersister.cs
- OdbcConnectionHandle.cs
- DataListCommandEventArgs.cs
- DataGridViewSelectedRowCollection.cs
- ClientCultureInfo.cs
- SwitchExpression.cs
- StringKeyFrameCollection.cs
- CodeTypeDeclaration.cs
- IPPacketInformation.cs
- TreeViewEvent.cs
- WinEventTracker.cs
- Canvas.cs
- FormsAuthenticationEventArgs.cs
- TextBoxBase.cs
- MSAANativeProvider.cs
- ClientUriBehavior.cs
- SqlStatistics.cs
- KeyToListMap.cs
- IPHostEntry.cs
- AbstractSvcMapFileLoader.cs
- QilInvoke.cs
- _ChunkParse.cs