C# Class System.Web.Http.HttpRequestMessageExtensions

Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Méthodes publiques

Méthode Description
GetCookie ( this request, string cookieName ) : string

Retrieves an individual cookie from the cookies collection

GetHeader ( this request, string key ) : string

Returns an individual HTTP Header value

GetQueryString ( this request, string key ) : string

Returns an individual querystring value

GetQueryStrings ( this request ) : string>.Dictionary

Returns a dictionary of QueryStrings that's easier to work with than GetQueryNameValuePairs KevValuePairs collection. If you need to pull a few single values use GetQueryString instead.

Method Details

GetCookie() public static méthode

Retrieves an individual cookie from the cookies collection
public static GetCookie ( this request, string cookieName ) : string
request this
cookieName string
Résultat string

GetHeader() public static méthode

Returns an individual HTTP Header value
public static GetHeader ( this request, string key ) : string
request this
key string
Résultat string

GetQueryString() public static méthode

Returns an individual querystring value
public static GetQueryString ( this request, string key ) : string
request this
key string
Résultat string

GetQueryStrings() public static méthode

Returns a dictionary of QueryStrings that's easier to work with than GetQueryNameValuePairs KevValuePairs collection. If you need to pull a few single values use GetQueryString instead.
public static GetQueryStrings ( this request ) : string>.Dictionary
request this
Résultat string>.Dictionary