streamOptions static method
Sends an OPTIONS 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> streamOptions(Uri uri,
{Map<String, String>? headers,
TransportPlatform? transportPlatform,
bool? withCredentials}) =>
_createRequest(uri,
headers: headers,
transportPlatform: transportPlatform,
withCredentials: withCredentials)
.streamOptions();