send method

Future<StreamedResponse> send(
  1. BaseRequest request, {
  2. Client? httpClient,
})

Performs the given request, adding the authorization token.

If no token already exists, or if it is expired, a new one is requested.

Implementation

Future<http.StreamedResponse> send(
  http.BaseRequest request, {
  http.Client? httpClient,
}) async {
  httpClient ??= this.httpClient;

  return _send(request, httpClient: httpClient);
}