post method

Future<HttpResult<T>> post(
  1. String url,
  2. {String? host,
  3. Map<String, Object>? path,
  4. Map<String, Object>? query,
  5. Map<String, String>? headers,
  6. dynamic body,
  7. Encoding? encoding}
)

Implementation

Future<HttpResult<T>> post(
  String url, {
  String? host,
  Map<String, Object>? path,
  Map<String, Object>? query,
  Map<String, String>? headers,
  dynamic body,
  Encoding? encoding,
}) async {
  final _CustomClient client = _client();

  return _process(
    client,
    client.post(
      Uri.parse(_route(url, host, path, query)),
      headers: headers,
      body: body,
      encoding: encoding,
    ),
  );
}