Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HttpListenerResponse Properties

HttpListenerResponse Properties

  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.

Community Additions

© 2015 Microsoft