send static method
Sends a request to uri
using the HTTP method specified by method
.
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<Response> send(String method, Uri uri,
{String? body,
Map<String, String>? headers,
TransportPlatform? transportPlatform,
bool? withCredentials}) =>
_createRequest(uri,
body: body,
headers: headers,
transportPlatform: transportPlatform,
withCredentials: withCredentials)
.send(method);