Mono Class Library: System.Net NamespaceSystem.Net.HttpWebResponse Class |
See Also: HttpWebResponse Members
System.Object
System.MarshalByRefObject
System.Net.WebResponse
System.Net.HttpWebResponse
|
All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.
Note:[Edit]The System.Net.HttpWebResponse class contains support for the properties and methods included in System.Net.WebResponse with additional elements that enable the user to interact directly with the Hypertext Transfer Protocol (HTTP).
Expected usage is that instances of this class are not created directly but are obtained by calling HttpWebRequest.GetResponse . To obtain the response from the Internet resource as a System.IO.Stream , call the HttpWebResponse.GetResponseStream method.
Certain HTTP headers are protected such that the user cannot set them directly in the header collection. Instead, these headers can be set via the properties of the System.Net.HttpWebRequest class or are set by the system. The following table details these protected headers.
Header Set by Accept HttpWebRequest.Accept Connection Content-Length HttpWebRequest.ContentLength Content-Type HttpWebRequest.ContentType Expect HttpWebRequest.Expect Date Set to current date by the system. Host Set to current host by the system. if-Modified-since HttpWebRequest.IfModifiedSince Range HttpWebRequest.AddRange(int, int) Referer HttpWebRequest.Referer Transfer-Encoding User-Agent HttpWebRequest.UserAgent
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0