HttpWebResponse Members
The following tables list the members exposed by the HttpWebResponse type.
Public Properties
Name | Description | |
---|---|---|
ContentEncoding | Gets the method that is used to encode the body of the response. | |
ContentLength | Gets the length of the content returned by the request. | |
ContentType | Gets the content type of the response. | |
Headers | Retrieves a response headers object. | |
LastModified | Gets the value of the Last-Modified header, which indicates the last time the document was modified. | |
Method | Gets the method that is used to return the response. | |
ProtocolVersion | Gets the version of the HTTP protocol that is used in the response. | |
ResponseUri | Gets the final response URI, that includes any changes that may have transpired from the orginal request. | |
Server | Gets the name of the server that sent the response. | |
StatusCode | Gets the status of the HTTP response, as a number. | |
StatusDescription | Gets the status description returned with the response. |
Public Methods
Name | Description | |
---|---|---|
Close | Closes the response stream. | |
Dispose | (Inherited from WebResponse.) | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetResponseHeader | Gets the contents of a header that was returned with the response. | |
GetResponseStream | Gets the stream used for reading the body of the response from the server. | |
GetType | (Inherited from Object.) | |
ReferenceEquals | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
Dispose | Closes a response stream, if present. | |
Finalize | (Inherited from WebResponse.) | |
MemberwiseClone | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
System.IDisposable.Dispose | Disposes the HttpWebResponse. |