Méthode | Description | |
---|---|---|
GetRequestFormat ( this request ) : |
Returns the format of a given request.
|
|
GetResponseFormats ( this request ) : List |
Returns the preferred content type to use for the response, based on the request, according to the following rules: 1. If the query string contains a key called "format", its value is returned as the content type 2. Otherwise, if the request has an Accepts header, the list of content types in order of preference is returned 3. Otherwise, if the request has a content type, its value is returned
|
|
IsBrowserRequest ( this request ) : bool |
Determines whether the specified HTTP request was sent by a Browser. A request is considered to be from the browser if it's a GET or POST and has a known User-Agent header (as determined by the request's BrowserCapabilities property), and does not have a non-HTML entity format (XML/JSON)
|
Méthode | Description | |
---|---|---|
HasBody ( this request ) : bool |
public static GetRequestFormat ( this request ) : |
||
request | this | The request. |
Résultat |
public static GetResponseFormats ( this request ) : List |
||
request | this | The request. |
Résultat | List |
public static IsBrowserRequest ( this request ) : bool | ||
request | this | The request. |
Résultat | bool |