[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a response to a request being handled by an HttpListener object.
Assembly: System.Http (in System.Http.dll)
Thetype exposes the following members.
|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 content returned.|
|Headers||Gets or sets the collection of header name/value pairs returned by the server.|
|KeepAlive||Gets or sets a value indicating 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 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 returned to the client.|
|Close||Sends the response to the client and releases the resources held by this instance.|
|Detach||Sends the response to the client.|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
When a client makes a request for a resource handled by an HttpListener object, the request and response are made available to your application in an HttpListenerContext object. The request is represented by an HttpListenerRequest object and is available in the HttpListenerContext..::..Request property. The response is represented by an object and is available in the HttpListenerContext..::..Response property.