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
- ReadOnlyDictionary.cs
- SendMessageRecord.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- SHA1.cs
- ClassValidator.cs
- IriParsingElement.cs
- SqlTriggerAttribute.cs
- OleDbErrorCollection.cs
- Int16.cs
- UrlMappingCollection.cs
- WebOperationContext.cs
- WeakReferenceEnumerator.cs
- LocalBuilder.cs
- ItemsChangedEventArgs.cs
- EDesignUtil.cs
- HTMLTextWriter.cs
- LogSwitch.cs
- ToolStripOverflow.cs
- StylusShape.cs
- TouchDevice.cs
- IndentedWriter.cs
- _LocalDataStore.cs
- ValidationSummary.cs
- TextRangeProviderWrapper.cs
- Empty.cs
- EntityDataSourceReferenceGroup.cs
- LookupBindingPropertiesAttribute.cs
- DecimalAnimationUsingKeyFrames.cs
- SqlTriggerAttribute.cs
- FunctionImportElement.cs
- FunctionUpdateCommand.cs
- GridViewRowCollection.cs
- securitycriticaldataClass.cs
- SiteMapDataSource.cs
- SelectionEditingBehavior.cs
- QueryOutputWriter.cs
- FileAuthorizationModule.cs
- PolicyStatement.cs
- DataListItem.cs
- SecurityDescriptor.cs
- TabItemWrapperAutomationPeer.cs
- Size.cs
- GridViewRowEventArgs.cs
- DataGridBoolColumn.cs
- Tablet.cs
- RectAnimationUsingKeyFrames.cs
- CatalogPart.cs
- ProjectionCamera.cs
- AttributeEmitter.cs
- ToolStripComboBox.cs
- ScriptModule.cs
- RubberbandSelector.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ImageBrush.cs
- DateTimeFormatInfo.cs
- Normalization.cs
- ProcessRequestArgs.cs
- HtmlInputRadioButton.cs
- Image.cs
- CfgArc.cs
- PageEventArgs.cs
- TransformedBitmap.cs
- WebPartVerbCollection.cs
- MobileControlDesigner.cs
- ImageBrush.cs
- ChildDocumentBlock.cs
- CodePrimitiveExpression.cs
- RuntimeWrappedException.cs
- securestring.cs
- MembershipPasswordException.cs
- GraphicsPathIterator.cs
- WebResponse.cs
- ResetableIterator.cs
- RawAppCommandInputReport.cs
- ProfessionalColors.cs
- ImageCollectionCodeDomSerializer.cs
- MouseGestureValueSerializer.cs
- Serializer.cs
- LocatorPartList.cs
- ObjectSecurity.cs
- ToolboxItem.cs
- Base64WriteStateInfo.cs
- CodeConstructor.cs
- DataRowView.cs
- IPEndPointCollection.cs
- PeerUnsafeNativeCryptMethods.cs
- HttpServerVarsCollection.cs
- WebColorConverter.cs
- CompressStream.cs
- DataGridColumnCollectionEditor.cs
- ButtonColumn.cs
- ModifiableIteratorCollection.cs
- PerformanceCounterTraceRecord.cs
- CallContext.cs
- RepeatBehavior.cs
- ActionNotSupportedException.cs
- TextRangeProviderWrapper.cs
- ProviderSettings.cs
- GenericTypeParameterBuilder.cs
- OperandQuery.cs