Response Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the HttpListenerResponse object that will be sent to the client in response to the client's request.

Namespace:  System.Net
Assembly:  System.Http (in System.Http.dll)

public HttpListenerResponse Response { get; }

Property Value

Type: System.Net..::..HttpListenerResponse
An HttpListenerResponse object used to send a response back to the client.

Your application configures the response by setting properties in the HttpListenerResponse object returned by this property. After configuring the response, you send it to the client by closing the response, or by closing this HttpListenerContext object.

Show: