HeaderDictionaryTypeExtensions.GetTypedHeaders Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetTypedHeaders(HttpRequest) |
Gets strongly typed HTTP request headers. |
GetTypedHeaders(HttpResponse) |
Gets strongly typed HTTP response headers. |
GetTypedHeaders(HttpRequest)
Gets strongly typed HTTP request headers.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Http::Headers::RequestHeaders ^ GetTypedHeaders(Microsoft::AspNetCore::Http::HttpRequest ^ request);
public static Microsoft.AspNetCore.Http.Headers.RequestHeaders GetTypedHeaders (this Microsoft.AspNetCore.Http.HttpRequest request);
static member GetTypedHeaders : Microsoft.AspNetCore.Http.HttpRequest -> Microsoft.AspNetCore.Http.Headers.RequestHeaders
<Extension()>
Public Function GetTypedHeaders (request As HttpRequest) As RequestHeaders
Parameters
- request
- HttpRequest
The HttpRequest.
Returns
The RequestHeaders.
Applies to
GetTypedHeaders(HttpResponse)
Gets strongly typed HTTP response headers.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Http::Headers::ResponseHeaders ^ GetTypedHeaders(Microsoft::AspNetCore::Http::HttpResponse ^ response);
public static Microsoft.AspNetCore.Http.Headers.ResponseHeaders GetTypedHeaders (this Microsoft.AspNetCore.Http.HttpResponse response);
static member GetTypedHeaders : Microsoft.AspNetCore.Http.HttpResponse -> Microsoft.AspNetCore.Http.Headers.ResponseHeaders
<Extension()>
Public Function GetTypedHeaders (response As HttpResponse) As ResponseHeaders
Parameters
- response
- HttpResponse
The HttpResponse.
Returns
The ResponseHeaders.