streamHead static method

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

Sends a HEAD request to uri and returns a StreamedResponse. Includes request headers if given.

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

Implementation

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