|
LuciadCPillar C# 2026.1.02
|
An HTTP Client, implementation of the IHttpClient interface.
More...
Classes | |
| class | Builder |
Builder for the HttpClient class. More... | |
Public Member Functions | |
| void | ClearHttpRequestOptions () |
| Clears the HTTP request options sent with every request, if any. | |
| void | Dispose () |
| Luciad.Net.Http.HttpResponse | Send (Luciad.Net.Http.HttpRequest request) |
Returns the HTTP response for the given HTTP request. | |
| Luciad.Net.Http.HttpResponse | Send (Luciad.Net.Http.HttpRequest request, Luciad.Concurrent.CancellationToken token) |
Returns the HTTP response for the given HTTP request. | |
Static Public Member Functions | |
| static Luciad.Net.Http.HttpClient.Builder | NewBuilder () |
Creates the new HttpClient builder. | |
Properties | |
| Luciad.Net.Http.HttpRequestOptions | HttpRequestOptions [get, set] |
| The HTTP request options sent with every request. | |
An HTTP Client, implementation of the IHttpClient interface.
An HttpClient can be used to send requests and retrieve their responses. An HttpClient is created through a builder. The builder can be used to configure client states, like: a proxy selector, an authenticator provider, etc.
This class is thread-safe, i.e. it can handle multiple concurrent requests.
This HTTP client class performs, by default, SSL verification.
HttpClient.Builder.CaCertFile.
|
inline |
Clears the HTTP request options sent with every request, if any.
|
inline |
|
inlinestatic |
Creates the new HttpClient builder.
HttpClient builder.
|
inline |
Returns the HTTP response for the given HTTP request.
This method is synchronous and blocks until the request has been sent and the response has been received.
| request | HTTP request. |
| System.IO.IOException | when loading the data fails. |
|
inline |
Returns the HTTP response for the given HTTP request.
This method is synchronous and blocks until the request has been sent and the response has been received.
The request process can be canceled by the means of the cancellation token. It is up to the implementer to verify that the cancellation token state is set to true during the operation. When set to true this indicates that an HTTP response is no longer needed.
| request | HTTP request. |
| token | Cancellation token. |
| System.IO.IOException | when loading the data fails. |
Implements Luciad.Net.Http.IHttpClient.
|
getset |
The HTTP request options sent with every request.
Returns the HTTP request options sent with every request.
Sets the HTTP request options sent with every request.