post method

Future<Response> post(
  1. String uri, {
  2. required Map<String, String> headers,
  3. Object? body,
})

Implementation

Future<http.Response> post(String uri,
    {required Map<String, String> headers, Object? body}) async {
  Uri url = _uri(uri);
  http.Response res = await http
      .post(url, headers: headers, body: body)
      .timeout(Duration(milliseconds: config.timeout));
  return res;
}