LuciadCPillar C# 2023.1.04
|
An HTTP Client, implementation of the luciad::IHttpClient interface. More...
Classes | |
class | Builder |
Builder for the luciad::HttpClient class. More... | |
Public Member Functions | |
void | ClearHttpRequestOptions () |
void | Dispose () |
Luciad.Net.Http.HttpResponse | Send (Luciad.Net.Http.HttpRequest request) |
Luciad.Net.Http.HttpResponse | Send (Luciad.Net.Http.HttpRequest request, Luciad.Concurrent.CancellationToken token) |
Returns the HTTP response for the given HTTP request. More... | |
Luciad.Net.Http.HttpResponse | Send (Luciad.Net.Http.HttpRequest request, Luciad.Concurrent.CancellationToken token) |
Returns the HTTP response for the given HTTP request. More... | |
Static Public Member Functions | |
static Luciad.Net.Http.HttpClient.Builder | NewBuilder () |
Properties | |
Luciad.Net.Http.HttpRequestOptions | HttpRequestOptions [get, set] |
An HTTP Client, implementation of the luciad::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. Example
This class is thread-safe, i.e. it can handle multiple concurrent requests. 2023.0
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
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 a HTTP response is no longer needed. The return value then can be an ErrorInfo object with the error code Canceled.
request
HTTP request.
token
Cancellation token.
the HTTP response.
luciad::IOException
when loading the data fails.
Implements Luciad.Net.Http.IHttpClient.
|
getset |