post static method

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

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();