Share via


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)

Syntax

'Declaration
Public ReadOnly Property Headers As WebHeaderCollection
public WebHeaderCollection Headers { get; }
public:
property WebHeaderCollection^ Headers {
    WebHeaderCollection^ get ();
}
member Headers : WebHeaderCollection with get
function get Headers () : WebHeaderCollection

Property Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

HttpListenerRequest Class

System.Net Namespace