send method

  1. @override
Future<Response> send(
  1. Request request
)
override

Sends the request and returns the Response

Implementation

@override
Future<Response> send(Request request) async {
  if (request.timeout != null && request.timeout! > Duration.zero) {
    return _send(request).timeout(request.timeout!);
  } else {
    return _send(request);
  }
}