Share via


HttpRequestMessage.Headers Property

Gets the collection of HTTP request headers.

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

Syntax

'Declaration
Public ReadOnly Property Headers As HttpRequestHeaders 
    Get
'Usage
Dim instance As HttpRequestMessage 
Dim value As HttpRequestHeaders 

value = instance.Headers
public HttpRequestHeaders Headers { get; }
public:
property HttpRequestHeaders^ Headers {
    HttpRequestHeaders^ get ();
}
member Headers : HttpRequestHeaders
function get Headers () : HttpRequestHeaders

Property Value

Type: System.Net.Http.Headers.HttpRequestHeaders

See Also

Reference

HttpRequestMessage Class

System.Net.Http Namespace