Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HttpListenerResponse Members

Represents a response to a request being handled by an HttpListener object.

The following tables list the members exposed by the HttpListenerResponse type.

  Name Description
Public property ContentEncoding Gets or sets the Encoding for this response's OutputStream.
Public property ContentLength64 Gets or sets the number of bytes in the body data included in the response.
Public property ContentType Gets or sets the MIME type of the content returned.
Public property Cookies Gets or sets the collection of cookies returned with the response.
Public property Headers Gets or sets the collection of header name/value pairs returned by the server.
Public property KeepAlive Gets or sets a value indicating whether the server requests a persistent connection.
Public property OutputStream Gets a Stream object to which a response can be written.
Public property ProtocolVersion Gets or sets the HTTP version used for the response.
Public property RedirectLocation Gets or sets the value of the HTTP Location header in this response.
Public property SendChunked Gets or sets whether the response uses chunked transfer encoding.
Public property StatusCode Gets or sets the HTTP status code to be returned to the client.
Public property StatusDescription Gets or sets a text description of the HTTP status code returned to the client.
Top
(see also Protected Methods )
  Name Description
Public method Abort Closes the connection to the client without sending a response.
Public method AddHeader Adds the specified header and value to the HTTP headers for this response.
Public method AppendCookie Adds the specified Cookie to the collection of cookies for this response.
Public method AppendHeader Appends a value to the specified HTTP header to be sent with this response.
Public method Close Overloaded. Sends the response to the client and releases the resources held by this HttpListenerResponse instance.
Public method CopyFrom Copies properties from the specified HttpListenerResponse to this response.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Redirect Configures the response to redirect the client to the specified URL.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method SetCookie Adds or updates a Cookie in the collection of cookies sent with this response.
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top
  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top
  Name Description
Explicit interface implementation Method System.IDisposable.Dispose Releases all resources used by the HttpListenerResponse.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.