send method

Future<Response> send(
  1. Uri uri,
  2. Request request
)

Sends the request to the uri on the server. This method can be used to send any non-standard requests.

Implementation

Future<Response> send(Uri uri, Request request) async {
  final response = await _client.send(uri, request);
  if (response.isFailed) throw RequestFailure(response);
  return response;
}