C# Класс System.Web.Http.HttpRequestMessageExtensions

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

GetCookie() публичный статический Метод

Retrieves an individual cookie from the cookies collection
public static GetCookie ( this request, string cookieName ) : string
request this
cookieName string
Результат string

GetHeader() публичный статический Метод

Returns an individual HTTP Header value
public static GetHeader ( this request, string key ) : string
request this
key string
Результат string

GetQueryString() публичный статический Метод

Returns an individual querystring value
public static GetQueryString ( this request, string key ) : string
request this
key string
Результат string

GetQueryStrings() публичный статический Метод

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
Результат string>.Dictionary