streamSend static method

Future<StreamedResponse> streamSend(
  1. String method,
  2. Uri uri, {
  3. String? body,
  4. Map<String, String>? headers,
  5. TransportPlatform? transportPlatform,
  6. bool? withCredentials,
})

Sends a request to uri using the HTTP method specified by method and returns a StreamedResponse. Includes request headers and a request body if given.

Secure cookies (credentials) will be included (in the browser) if withCredentials is true.

Implementation

static Future<StreamedResponse> streamSend(String method, Uri uri,
        {String? body,
        Map<String, String>? headers,
        TransportPlatform? transportPlatform,
        bool? withCredentials}) =>
    _createRequest(uri,
            body: body,
            headers: headers,
            transportPlatform: transportPlatform,
            withCredentials: withCredentials)
        .streamSend(method);