The HttpListenerResponse type exposes the following members.

Methods

  NameDescription
Public methodClose
Sends the response to the client and releases the resources held by this HttpListenerResponse instance.
Protected methodFinalize
Called to close the socket if necessary.
(Overrides Object..::..Finalize()()()().)

Properties

  NameDescription
Public propertyContentEncoding
Gets or sets the encoding for this response's OutputStream.
Public propertyContentLength64
Gets or sets the number of bytes in the body data included in the response.
Public propertyContentType
Gets or sets the MIME type of the returned content.
Public propertyHeaders
Gets or sets the collection of header name/value pairs that is returned by the server.
Public propertyKeepAlive
Gets or sets whether the server requests a persistent connection.
Public propertyOutputStream
Gets a Stream object to which a response can be written.
Public propertyProtocolVersion
Gets or sets the HTTP version that is used for the response.
Public propertyRedirectLocation
Gets or sets the value of the HTTP Location header in this response.
Public propertySendChunked
Gets or sets whether the response uses chunked transfer encoding.
Public propertyStatusCode
Gets or sets the HTTP status code to be returned to the client.
Public propertyStatusDescription
Gets or sets a text description of the HTTP status code that is returned to the client.

See Also