Mono Class Library: System.Net.HttpWebResponse Overview | Members

System.Net.HttpWebResponse.Headers Property

Gets the headers associated with the current response from the server. [Edit]

public override WebHeaderCollection Headers { get; }

Value

A System.Net.WebHeaderCollection containing the header information returned with the response. [Edit]

Exceptions

TypeReason
ObjectDisposedExceptionThe current instance has been disposed. [Edit]

Remarks

This property is read-only.

Note:

The HttpWebResponse.Headers property is a collection of name/value pairs containing the HTTP header values returned with the response. The following table lists common headers and the properties that store their values.

HeaderProperty
Content-EncodingHttpWebResponse.ContentEncoding
Content-LengthHttpWebResponse.ContentLength
Content-TypeHttpWebResponse.ContentType
Last-ModifiedHttpWebResponse.LastModified
ServerHttpWebResponse.Server

This property overrides WebResponse.Headers.

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0