post method

Future<HttpResponse> post(
  1. String url, {
  2. Map<String, String>? headers,
  3. Object? body,
})

Perform an HTTP POST request to url with an optional JSON body.

Implementation

Future<HttpResponse> post(
  String url, {
  Map<String, String>? headers,
  Object? body,
}) async {
  return _requestWithRetry('POST', url, headers: headers, body: body);
}