send method

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

Auto apply headers to all request

Implementation

@override
Future<http.StreamedResponse> send(http.BaseRequest request) async {
  if (headers != null) {
    _headers = (await headers!);
  }
  request.headers.addAll(_headers);
  return _client.send(request);
}