Click or drag to resize

HttpListenerResponse Class

Provides the access to a response to a request received by the HttpListener.
Inheritance Hierarchy
SystemObject
  Sfs2X.WebSocketSharp.NetHttpListenerResponse

Namespace:  Sfs2X.WebSocketSharp.Net
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public sealed class HttpListenerResponse : IDisposable

The HttpListenerResponse type exposes the following members.

Properties
  NameDescription
Public propertyContentEncoding
Gets or sets the encoding for the entity body data included in the response.
Public propertyContentLength64
Gets or sets the number of bytes in the entity body data included in the response.
Public propertyContentType
Gets or sets the media type of the entity body included in the response.
Public propertyCookies
Gets or sets the cookies sent with the response.
Public propertyHeaders
Gets or sets the HTTP headers sent to the client.
Public propertyKeepAlive
Gets or sets a value indicating whether the server requests a persistent connection.
Public propertyOutputStream
Gets a Stream to use to write the entity body data.
Public propertyProtocolVersion
Gets or sets the HTTP version used in the response.
Public propertyRedirectLocation
Gets or sets the URL to which the client is redirected to locate a requested resource.
Public propertySendChunked
Gets or sets a value indicating whether the response uses the chunked transfer encoding.
Public propertyStatusCode
Gets or sets the HTTP status code returned to the client.
Public propertyStatusDescription
Gets or sets the description of the HTTP status code returned to the client.
Top
Methods
  NameDescription
Public methodAbort
Closes the connection to the client without returning a response.
Public methodAddHeader
Adds an HTTP header with the specified name and value to the headers for the response.
Public methodAppendCookie
Appends the specified cookie to the cookies sent with the response.
Public methodAppendHeader
Appends a value to the specified HTTP header sent with the response.
Public methodClose
Returns the response to the client and releases the resources used by this HttpListenerResponse instance.
Public methodClose(Byte, Boolean)
Returns the response with the specified array of Byte to the client and releases the resources used by this HttpListenerResponse instance.
Public methodCopyFrom
Copies some properties from the specified HttpListenerResponse to this response.
Public methodRedirect
Configures the response to redirect the client's request to the specified url.
Public methodSetCookie
Adds or updates a cookie in the cookies sent with the response.
Top
Extension Methods
  NameDescription
Public Extension MethodWriteContent
Writes and sends the specified content data with the specified HttpListenerResponse.
(Defined by Ext.)
Top
Remarks
The HttpListenerResponse class cannot be inherited.
See Also