send method

  1. @override
Future<IOStreamedResponse> send(
  1. BaseRequest request
)

Sends an HTTP request and asynchronously returns the response.

Implementation

@override
Future<IOStreamedResponse> send(http.BaseRequest request) async {
  http.StreamedResponse response;
  try {
    response = await super.send(request);
    return response as IOStreamedResponse;
  } catch (e) {
    rethrow;
  }
}