newBinaryRequest method

  1. @override
BinaryRequest newBinaryRequest()
inherited

Constructs a new BinaryRequest that will use this client to send the request. Throws a StateError if this client has been closed.

Implementation

@override
BinaryRequest newBinaryRequest() {
  verifyNotClosed();
  final request = MockBinaryRequest.fromClient(this, _transport);
  registerAndDecorateRequest(request);
  return request;
}