Share via


HeaderDictionaryTypeExtensions.GetTypedHeaders Method

Definition

Overloads

GetTypedHeaders(HttpRequest)

Gets strongly typed HTTP request headers.

GetTypedHeaders(HttpResponse)

Gets strongly typed HTTP response headers.

GetTypedHeaders(HttpRequest)

Source:
HeaderDictionaryTypeExtensions.cs
Source:
HeaderDictionaryTypeExtensions.cs
Source:
HeaderDictionaryTypeExtensions.cs

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)

Source:
HeaderDictionaryTypeExtensions.cs
Source:
HeaderDictionaryTypeExtensions.cs
Source:
HeaderDictionaryTypeExtensions.cs

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.

Applies to