The HttpListenerResponse type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Close |
Sends the response to the client and releases the resources held by
this HttpListenerResponse instance.
| |
| Finalize |
Called to close the socket if necessary.
(Overrides Object..::..Finalize()()()().) |
Properties
| Name | Description | |
|---|---|---|
| ContentEncoding |
Gets or sets the encoding for this response's
OutputStream.
| |
| ContentLength64 |
Gets or sets the number of bytes in the body data included in the
response.
| |
| ContentType |
Gets or sets the MIME type of the returned content.
| |
| Headers |
Gets or sets the collection of header name/value pairs that is
returned by the server.
| |
| KeepAlive |
Gets or sets whether the server requests a persistent connection.
| |
| OutputStream |
Gets a Stream object to which a response can be
written.
| |
| ProtocolVersion |
Gets or sets the HTTP version that is used for the response.
| |
| RedirectLocation |
Gets or sets the value of the HTTP Location
header in this response.
| |
| SendChunked |
Gets or sets whether the response uses chunked transfer encoding.
| |
| StatusCode |
Gets or sets the HTTP status code to be returned to the client.
| |
| StatusDescription |
Gets or sets a text description of the HTTP status code that is
returned to the client.
|