post static method
Sends a POST request to uri
. 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> post(Uri uri,
{String? body,
Map<String, String>? headers,
TransportPlatform? transportPlatform,
bool? withCredentials}) =>
_createRequest(uri,
body: body,
headers: headers,
transportPlatform: transportPlatform,
withCredentials: withCredentials)
.post();