Realizes the request functionality of Http requests. This class builds up the request and sends it to the specified source.
The class provides properties, methods, and event handler to process the response. Each instanceo of the request class contains
one Response object.
Namespace: Gadgeteer.NetworkingAssembly: Gadgeteer.WebClient (in Gadgeteer.WebClient.dll) Version: 2.41.0.0 (2.41.400.0)
Syntax
| C# |
|---|
public class HttpRequest |
Remarks
This class contains several properties that can be set before the request is started. In this class
the request must be started manually, either by using [!:Request.WaitForResponse], which blocks the current
thread until a response is received, or by using [!:Request.SendRequest], which handles the request asynchronously. Calls to these
methods can be used one after another without rasing an exception.
Inheritance Hierarchy
System..::..Object
Gadgeteer.Networking..::..HttpRequest
Gadgeteer.Networking..::..HttpRequest