HttpListenerResponse Members
The following tables list the members exposed by the HttpListenerResponse type.
Public 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. |
Public Methods
Name | Description | |
---|---|---|
Close | Sends the response to the client and releases the resources held by this HttpListenerResponse instance. | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ReferenceEquals | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Protected Methods
Name | Description | |
---|---|---|
Finalize | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
System.IDisposable.Dispose | Closes the socket and sends the response if it was not done earlier and the socket is present. |