HttpResponseHeaders Class

Definition

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

public ref class HttpResponseHeaders sealed : System::Net::Http::Headers::HttpHeaders
public sealed class HttpResponseHeaders : System.Net.Http.Headers.HttpHeaders
type HttpResponseHeaders = class
    inherit HttpHeaders
Public NotInheritable Class HttpResponseHeaders
Inherits HttpHeaders
Inheritance
HttpResponseHeaders

Remarks

This type is derived from HttpHeaders.

Properties

AcceptRanges

Gets the value of the Accept-Ranges header for an HTTP response.

Age

Gets or sets the value of the Age header for an HTTP response.

CacheControl

Gets or sets the value of the Cache-Control header for an HTTP response.

Connection

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

ConnectionClose

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

Date

Gets or sets the value of the Date header for an HTTP response.

ETag

Gets or sets the value of the ETag header for an HTTP response.

Location

Gets or sets the value of the Location header for an HTTP response.

Pragma

Gets the value of the Pragma header for an HTTP response.

ProxyAuthenticate

Gets the value of the Proxy-Authenticate header for an HTTP response.

RetryAfter

Gets or sets the value of the Retry-After header for an HTTP response.

Server

Gets the value of the Server header for an HTTP response.

Trailer

Gets the value of the Trailer header for an HTTP response.

TransferEncoding

Gets the value of the Transfer-Encoding header for an HTTP response.

TransferEncodingChunked

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

Upgrade

Gets the value of the Upgrade header for an HTTP response.

Vary

Gets the value of the Vary header for an HTTP response.

Via

Gets the value of the Via header for an HTTP response.

Warning

Gets the value of the Warning header for an HTTP response.

WwwAuthenticate

Gets the value of the WWW-Authenticate header for an HTTP response.

Methods

Add(String, IEnumerable<String>)

Adds the specified header and its values into the HttpHeaders collection.

(Inherited from HttpHeaders)
Add(String, String)

Adds the specified header and its value into the HttpHeaders collection.

(Inherited from HttpHeaders)
Clear()

Removes all headers from the HttpHeaders collection.

(Inherited from HttpHeaders)
Contains(String)

Returns if a specific header exists in the HttpHeaders collection.

(Inherited from HttpHeaders)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator()

Returns an enumerator that can iterate through the HttpHeaders instance.

(Inherited from HttpHeaders)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
GetValues(String)

Returns all header values for a specified header stored in the HttpHeaders collection.

(Inherited from HttpHeaders)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(String)

Removes the specified header from the HttpHeaders collection.

(Inherited from HttpHeaders)
ToString()

Returns a string that represents the current HttpHeaders object.

(Inherited from HttpHeaders)
TryAddWithoutValidation(String, IEnumerable<String>)

Returns a value that indicates whether the specified header and its values were added to the HttpHeaders collection without validating the provided information.

(Inherited from HttpHeaders)
TryAddWithoutValidation(String, String)

Returns a value that indicates whether the specified header and its value were added to the HttpHeaders collection without validating the provided information.

(Inherited from HttpHeaders)
TryGetValues(String, IEnumerable<String>)

Return if a specified header and specified values are stored in the HttpHeaders collection.

(Inherited from HttpHeaders)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets an enumerator that can iterate through a HttpHeaders.

(Inherited from HttpHeaders)

Extension Methods

CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to