IHttpRequestFeature.Headers 属性

定义

获取或设置请求中包含的标头,并按标头名称聚合。

这些值不会在标题行之间拆分或合并。 例如,以下标头:

  • HeaderA:value1、value2
  • HeaderA: value3
Headers[“HeaderA”] = { “value1, value2”, “value3” }

public:
 property Microsoft::AspNetCore::Http::IHeaderDictionary ^ Headers { Microsoft::AspNetCore::Http::IHeaderDictionary ^ get(); void set(Microsoft::AspNetCore::Http::IHeaderDictionary ^ value); };
public Microsoft.AspNetCore.Http.IHeaderDictionary Headers { get; set; }
member this.Headers : Microsoft.AspNetCore.Http.IHeaderDictionary with get, set
Public Property Headers As IHeaderDictionary

属性值

适用于