post method

Future<TClientResponse> post(
  1. String path, {
  2. Map<String, String>? query,
  3. Object? data,
  4. Map<String, String>? headers,
  5. Duration? sendTimeout,
  6. Duration? receiveTimeout,
})

POST request

Implementation

Future<TClientResponse> post(
  String path, {
  Map<String, String>? query,
  Object? data,
  Map<String, String>? headers,
  Duration? sendTimeout,
  Duration? receiveTimeout,
}) {
  return sendRequest(
    Method.post,
    path,
    body: data,
    headers: headers,
    query: query,
    sendTimeout: sendTimeout,
    receiveTimeout: receiveTimeout,
  );
}