createRealRequest method

  1. @override
StreamedRequest createRealRequest()

Implementation

@override
StreamedRequest createRealRequest() {
  if (_realTransport == null) {
    throw TransportPlatformMissing.httpRequestFailed('StreamedRequest');
  }
  return _realTransport!.newStreamedRequest()
    ..contentLength = contentLength
    ..contentType = contentType
    ..body = body;
}