C# Class System.Web.Http.HttpRequestMessageExtensions

Show file Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method 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 method

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

GetHeader() public static method

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

GetQueryString() public static method

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

GetQueryStrings() public static method

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
return string>.Dictionary