HttpListenerResponse Members

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

Public Properties

Name Description
Public Property ContentEncoding Gets or sets the encoding for this response's OutputStream.
Public Property ContentLength64 Gets or sets the number of bytes in the body data included in the response.
Public Property ContentType Gets or sets the MIME type of the returned content.
Public Property Headers Gets or sets the collection of header name/value pairs that is returned by the server.
Public Property KeepAlive Gets or sets whether the server requests a persistent connection.
Public Property OutputStream Gets a Stream object to which a response can be written.
Public Property ProtocolVersion Gets or sets the HTTP version that is used for the response.
Public Property RedirectLocation Gets or sets the value of the HTTP Location header in this response.
Public Property SendChunked Gets or sets whether the response uses chunked transfer encoding.
Public Property StatusCode Gets or sets the HTTP status code to be returned to the client.
Public Property StatusDescription Gets or sets a text description of the HTTP status code that is returned to the client.

Public Methods

Name Description
Public Method Close Sends the response to the client and releases the resources held by this HttpListenerResponse instance.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

Explicit Interface Implementations

Name Description
Explicit Interface ImplementationMethod System.IDisposable.Dispose Closes the socket and sends the response if it was not done earlier and the socket is present.

See Also

Reference

HttpListenerResponse Class
System.Net Namespace