This documentation is archived and is not being maintained.

HttpListenerResponse Methods

The HttpListenerResponse type exposes the following members.

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 Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Redirect Configures the response to redirect the client to the specified URL.
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.)

Explicit interface implemetation Private method IDisposable.Dispose Infrastructure. Releases all resources used by the HttpListenerResponse.