Describes an incoming HTTP request to an
[!:System.Net.HttpListener] object.
Namespace: GHIElectronics.NETMF.NetAssembly: GHIElectronics.NETMF.W5100.Http (in GHIElectronics.NETMF.W5100.Http.dll) Version: 4.1.9.0 (4.1.9.0)
Syntax
| C# |
|---|
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
[!:System.Net.HttpListenerContext] object that contains
information about the sender, the request, and the response that is sent
to the client. The [!:System.Net.HttpListenerContext.Request]
property returns the HttpListenerRequest object that
describes the request.
The HttpListenerRequest object contains information about the request, such as the request [!:System.Net.HttpListenerRequest.HttpMethod] string, [!:System.Net.HttpListenerRequest.UserAgent] string, and request body data (see the [!:System.Net.HttpListenerRequest.InputStream] property).
To reply to the request, you must get the associated response using the [!:System.Net.HttpListenerContext.Response] property.