Extension methods for HttpRequest
More...
|
| static string | GetHeader (this HttpRequest request, string name) |
| | Obtains an item from the HTTP header More...
|
| |
| static Task< string > | GetBodyAsync (this HttpRequest request) |
| | Retrieves the body of a request as a string More...
|
| |
Extension methods for HttpRequest
◆ GetBodyAsync()
| static Task<string> Sphyrnidae.Common.Extensions.HttpRequestExtensions.GetBodyAsync |
( |
this HttpRequest |
request | ) |
|
|
static |
Retrieves the body of a request as a string
- Parameters
-
| request | The current http request |
- Returns
- The full body of the request
◆ GetHeader()
| static string Sphyrnidae.Common.Extensions.HttpRequestExtensions.GetHeader |
( |
this HttpRequest |
request, |
|
|
string |
name |
|
) |
| |
|
static |
Obtains an item from the HTTP header
- Parameters
-
| request | The current http request |
| name | The name of the HTTP header to retrieve |
- Returns
- The value of the HTTP header
The documentation for this class was generated from the following file:
- C:/Users/dougb/Desktop/Sphyrnidae/New/Common/Common/Extensions/HttpRequestExtensions.cs