Headers Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the collection of header name/value pairs sent in the request.

Namespace:  System.Net
Assembly:  System.Http (in System.Http.dll)

member Headers : WebHeaderCollection

Property Value

Type: System.Net..::..WebHeaderCollection
A WebHeaderCollection that contains the HTTP headers included in the request.

Request headers contain metadata information. For example, headers can contain the Uniform Resource Identifier (URI) of the resource that referred the client to the server, the identity of the user agent employed by the client, and the acceptable MIME types for data in the response body.

For a complete list of request headers, see the HttpRequestHeader enumeration.

Show: