Namespace VpnHood.Net.Toolkit.ApiClients
Classes
- ApiClientBase
Provides the base of a hand-written API client: it sends JSON requests through an HttpClient, reads JSON responses, and turns an error response into an exception.
- ApiClientCommon
Provides the base of a generated API client: the request's base address, authorization and headers, through the hooks the generated code calls.
- ApiError
Represents an exception as an API sends it: its type's names, its message, its data and its inner exception's message, as JSON a client turns back into an exception.
- ApiException
The exception that is thrown when an API call fails: its status code, its response and, when the response is an ApiError, the type of the exception the API threw.
- ExceptionExtensions
Provides the means to send an exception from an API as an ApiError.
Structs
- ApiClientBase.HttpResult<T>
Represents a response read as an object.