send method

  1. @override
Future<HttpResponse> send(
  1. HttpRequest request
)
override

Sends request and reads the whole response into memory.

Every status code, 4xx and 5xx included, completes normally with an HttpResponse. The future fails with an HttpTransportException only when there is no response: the connection could not be opened or broke, or the request's timeout or readTimeout ran out.

Implementation

@override
Future<HttpResponse> send(HttpRequest request) async =>
    await (await _answer(request)).read();