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
Afficher le fichier Open project: gregmac/NServiceMVC Class Usage Examples

Méthodes publiques

Свойство Type Description
ContentTypeQueryStringId string
DefaultContentType string
HttpMethodOverrideFormId string
HttpMethodOverrideQueryStringId string

Méthodes publiques

Méthode Description
HttpRequestInfo ( System.Web.HttpRequestBase httpRequest ) : System

Private Methods

Méthode 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 méthode

public HttpRequestInfo ( System.Web.HttpRequestBase httpRequest ) : System
httpRequest System.Web.HttpRequestBase
Résultat System

Property Details

ContentTypeQueryStringId public_oe static_oe property

public static string ContentTypeQueryStringId
Résultat string

DefaultContentType public_oe static_oe property

public static string DefaultContentType
Résultat string

HttpMethodOverrideFormId public_oe static_oe property

public static string HttpMethodOverrideFormId
Résultat string

HttpMethodOverrideQueryStringId public_oe static_oe property

public static string HttpMethodOverrideQueryStringId
Résultat string