Table of Contents

Class HttpRequestHeaders

Namespace
System.Net.Http.Headers
Assembly
System.Net.Http.dll

Represents the collection of Request Headers as defined in RFC 2616.

public sealed class HttpRequestHeaders : HttpHeaders
Inheritance
HttpRequestHeaders
Inherited Members
Extension Methods

Properties

Connection

Gets the value of the Connection header for an HTTP request.

public string Connection { get; }

Property Value

string

The value of the Connection header for an HTTP request.

ConnectionClose

Gets or sets a value that indicates if the Connection header for an HTTP request contains Close.

public bool ConnectionClose { get; set; }

Property Value

bool

true if the Connection header contains Close, otherwise false.

TransferEncodingChunked

Gets or sets a value that indicates if the Transfer-Encoding header for an HTTP request contains chunked.

public bool TransferEncodingChunked { get; set; }

Property Value

bool

true if the Transfer-Encoding header contains chunked, otherwise false.