Share via


HttpListenerRequest Class

Describes an incoming HTTP request to an object.

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

Syntax

public class HttpListenerRequest

Remarks

When a client makes a request to a Uniform Resource Identifier (URI) handled by an HttpListener object, the HttpListener provides an HttpListenerContext object that contains information about the sender, the request, and the response that is sent to the client. The HttpListenerContext.Request property returns the HttpListenerRequest object that describes the request.

The HttpListenerRequest object contains information about the request, such as the request HttpMethod string, UserAgent string, and request body data (see the InputStream property).

To reply to the request, you must get the associated response using the HttpListenerContext.Response property.

Version Information

Available in the .NET Micro Framework versions 4.0, 4.1, and 4.2.

See Also

Reference

HttpListenerRequest Members
System.Net Namespace