ApiClient constructor
ApiClient(
- Uri baseUrl, {
- required Client httpClient,
All HTTP methods (get, post, etc.) append their path args to baseUrl
in order to build the endpoint URL.
An optional httpClient
can be provided if a custom HTTP strategy is
required, as is the case with proxies.
Implementation
ApiClient(
this.baseUrl, {
required http.Client httpClient,
}) : _httpClient = httpClient;