C# Class NServiceMVC.WebStack.HttpRequestInfo

Wraps a HttpRequest and intercepts both Http Verb and Content Type properties to allow for overloading of POST and supplying format information on the URI
显示文件 Open project: gregmac/NServiceMVC Class Usage Examples

Public Properties

Property Type Description
ContentTypeQueryStringId string
DefaultContentType string
HttpMethodOverrideFormId string
HttpMethodOverrideQueryStringId string

Public Methods

Method Description
HttpRequestInfo ( System.Web.HttpRequestBase httpRequest ) : System

Private Methods

Method Description
GetHttpMethod ( System.Web.HttpRequestBase httpRequest ) : string
GetRequestFormat ( System.Web.HttpRequestBase request ) : ContentType
TryToGetContentTypeFromUri ( System.Web.HttpRequestBase request, string &contentType ) : bool

Gets the content type value from a URL parameter, if posssible. No validity checking is done on the value passed.

Method Details

HttpRequestInfo() public method

public HttpRequestInfo ( System.Web.HttpRequestBase httpRequest ) : System
httpRequest System.Web.HttpRequestBase
return System

Property Details

ContentTypeQueryStringId public_oe static_oe property

public static string ContentTypeQueryStringId
return string

DefaultContentType public_oe static_oe property

public static string DefaultContentType
return string

HttpMethodOverrideFormId public_oe static_oe property

public static string HttpMethodOverrideFormId
return string

HttpMethodOverrideQueryStringId public_oe static_oe property

public static string HttpMethodOverrideQueryStringId
return string