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
- CompositeDataBoundControl.cs
- RootProfilePropertySettingsCollection.cs
- PageThemeCodeDomTreeGenerator.cs
- DesignTimeParseData.cs
- IpcManager.cs
- SymmetricAlgorithm.cs
- ObjectStateEntryDbDataRecord.cs
- ToolTipService.cs
- DescendantQuery.cs
- DataContractSerializer.cs
- DispatcherOperation.cs
- GridViewDesigner.cs
- TextSearch.cs
- HostedBindingBehavior.cs
- SQLMoneyStorage.cs
- XmlBoundElement.cs
- EventInfo.cs
- InvariantComparer.cs
- ShapeTypeface.cs
- EpmContentDeSerializerBase.cs
- FullTextState.cs
- ParentQuery.cs
- ArgumentNullException.cs
- SupportsEventValidationAttribute.cs
- AnimationClock.cs
- EnterpriseServicesHelper.cs
- ListManagerBindingsCollection.cs
- QuadraticBezierSegment.cs
- WebConfigurationManager.cs
- PagerStyle.cs
- ViewLoader.cs
- LabelExpression.cs
- QueryCacheKey.cs
- RowCache.cs
- OdbcException.cs
- FixedPageProcessor.cs
- EtwTrace.cs
- JournalNavigationScope.cs
- WebPartVerbCollection.cs
- PerformanceCounterManager.cs
- CommandValueSerializer.cs
- Canonicalizers.cs
- Region.cs
- PointConverter.cs
- NameTable.cs
- XmlSchemaDocumentation.cs
- DynamicValueConverter.cs
- TemplatedEditableDesignerRegion.cs
- BoolLiteral.cs
- DSASignatureDeformatter.cs
- TextPattern.cs
- DataViewManager.cs
- XmlDataSource.cs
- ViewCellSlot.cs
- SecurityManager.cs
- DescendantQuery.cs
- ServiceParser.cs
- ReflectionUtil.cs
- StylusCaptureWithinProperty.cs
- TextBox.cs
- ValueSerializer.cs
- CreateUserWizardStep.cs
- SimpleHandlerFactory.cs
- PageTrueTypeFont.cs
- LicenseContext.cs
- UrlAuthFailedErrorFormatter.cs
- MetadataItemCollectionFactory.cs
- ellipse.cs
- SqlClientPermission.cs
- ThousandthOfEmRealPoints.cs
- StylusPlugin.cs
- Attribute.cs
- DataGridViewUtilities.cs
- ProfileSection.cs
- BitmapVisualManager.cs
- SortDescription.cs
- ChooseAction.cs
- PolicyUnit.cs
- ContentOnlyMessage.cs
- GridSplitterAutomationPeer.cs
- StrongName.cs
- ISFClipboardData.cs
- ProxyGenerator.cs
- ContextActivityUtils.cs
- GifBitmapEncoder.cs
- SafePEFileHandle.cs
- Stack.cs
- XMLDiffLoader.cs
- FolderLevelBuildProviderCollection.cs
- JsonReaderWriterFactory.cs
- HandlerBase.cs
- PackageRelationship.cs
- Visitors.cs
- ExpressionBinding.cs
- SystemIPv4InterfaceProperties.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- RuntimeVariableList.cs
- AncestorChangedEventArgs.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SqlMethodAttribute.cs