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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.