Skip to main content

HttpListenerContext Class

NuGet: GHIElectronics.TinyCLR.Networking.Http
Assembly: GHIElectronics.TinyCLR.Networking.Http
Namespace: System.Net

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

public class HttpListenerContext

Properties

Request

public HttpListenerRequest Request { get; }

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

Response

public HttpListenerResponse Response { get; }

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

Methods

Reset()

public void Reset()

Resets the parsed-request state and the underlying request so the context can be reused.