Share via


HttpWebResponse Members

The following tables list the members exposed by the HttpWebResponse type.

Public Properties

Name Description
Public Property ContentEncoding Gets the method that is used to encode the body of the response.
Public Property ContentLength Gets the length of the content returned by the request.
Public Property ContentType Gets the content type of the response.
Public Property Headers Retrieves a response headers object.
Public Property LastModified Gets the value of the Last-Modified header, which indicates the last time the document was modified.
Public Property Method Gets the method that is used to return the response.
Public Property ProtocolVersion Gets the version of the HTTP protocol that is used in the response.
Public Property ResponseUri Gets the final response URI, that includes any changes that may have transpired from the orginal request.
Public Property Server Gets the name of the server that sent the response.
Public Property StatusCode Gets the status of the HTTP response, as a number.
Public Property StatusDescription Gets the status description returned with the response.

Public Methods

Name Description
Public Method Close Closes the response stream.
Public Method Dispose (Inherited from WebResponse.)
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetResponseHeader Gets the contents of a header that was returned with the response.
Public Method GetResponseStream Gets the stream used for reading the body of the response from the server.
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Dispose Closes a response stream, if present.
Protected Method Finalize (Inherited from WebResponse.)
Protected Method MemberwiseClone (Inherited from Object.)

Explicit Interface Implementations

Name Description
Explicit Interface ImplementationMethod System.IDisposable.Dispose Disposes the HttpWebResponse.

See Also

Reference

HttpWebResponse Class
System.Net Namespace