Table of Contents

Class HttpListenerContext

Namespace
System.Net
Assembly
System.Net.Http.dll

Provides access to the request and response objects used by the HttpListener class. This class cannot be inherited.

public class HttpListenerContext
Inheritance
HttpListenerContext
Inherited Members
Extension Methods

Properties

Request

Gets the HttpListenerRequest that represents a client's request for a resource.

public HttpListenerRequest Request { get; }

Property Value

HttpListenerRequest

An HttpListenerRequest object that represents the client request.

Response

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

public HttpListenerResponse Response { get; }

Property Value

HttpListenerResponse

An HttpListenerResponse object used to send a response back to the client.

Methods

Close()

Closes the stream attached to this listener context.

public void Close()

Reset()

public void Reset()