C-DEngine 5.105

HttpListenerResponse Members

The HttpListenerResponse type exposes the following members.

Methods


  Name Description
Public method Abort
Closes the connection to the client without returning a response.
Public method AddHeader
Adds an HTTP header with the specified name and value to the headers for the response.
Public method AppendCookie
Appends the specified cookie to the cookies sent with the response.
Public method AppendHeader
Appends a value to the specified HTTP header sent with the response.
Public method Close()()()()
Returns the response to the client and releases the resources used by this HttpListenerResponse instance.
Public method Close(array<Byte>[]()[][], Boolean)
Returns the response with the specified array of Byte to the client and releases the resources used by this HttpListenerResponse instance.
Public method CopyFrom
Copies some properties from the specified HttpListenerResponse to this response.
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Redirect
Configures the response to redirect the client's request to the specified url.
Public method SetCookie
Adds or updates a cookie in the cookies sent with the response.
Public method ToString (Inherited from Object.)

Properties


  Name Description
Public property ContentEncoding
Gets or sets the encoding for the entity body data included in the response.
Public property ContentLength64
Gets or sets the number of bytes in the entity body data included in the response.
Public property ContentType
Gets or sets the media type of the entity body included in the response.
Public property Cookies
Gets or sets the cookies sent with the response.
Public property Headers
Gets or sets the HTTP headers sent to the client.
Public property KeepAlive
Gets or sets a value indicating whether the server requests a persistent connection.
Public property OutputStream
Gets a Stream to use to write the entity body data.
Public property ProtocolVersion
Gets or sets the HTTP version used in the response.
Public property RedirectLocation
Gets or sets the URL to which the client is redirected to locate a requested resource.
Public property SendChunked
Gets or sets a value indicating whether the response uses the chunked transfer encoding.
Public property StatusCode
Gets or sets the HTTP status code returned to the client.
Public property StatusDescription
Gets or sets the description of the HTTP status code returned to the client.