HeaderDictionaryTypeExtensions.GetTypedHeaders 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetTypedHeaders(HttpRequest) |
获取强类型 HTTP 请求标头。 |
GetTypedHeaders(HttpResponse) |
获取强类型 HTTP 响应标头。 |
GetTypedHeaders(HttpRequest)
获取强类型 HTTP 请求标头。
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
参数
- request
- HttpRequest
返回
适用于
GetTypedHeaders(HttpResponse)
获取强类型 HTTP 响应标头。
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
参数
- response
- HttpResponse