build method

  1. @override
Future<Response> build()
override

Implementation

@override
Future<Response> build () async {
  final request = Request(httpMethod.uid, Uri.parse('$httpBaseUrl$httpUrl'))
    ..headers.addAll(httpHeaders);

  final response = await request.send();

  return Response.bytes(await response.stream.toBytes(), response.statusCode);
}