Skip to main content

send method

Future<StreamedResponse> send (BaseRequest? request)

<span class="feature">override</span>

<p>Sends an HTTP request and asynchronously returns the response.</p>

Implementation

@override
Future\<http.StreamedResponse\> send(http.BaseRequest? request) =\>
ignore: invalid_use_of_visible_for_testing_member
super.noSuchMethod(
Invocation.method(#send, [request]),
returnValue: Future.value(
http.StreamedResponse(
Stream.fromIterable(const [\<int\>[]]),
500,
),
),
) as Future\<http.StreamedResponse\>;