post method

Future<Response> post(
  1. String path, {
  2. dynamic body,
  3. ProcessResponseMethod? processResponseMethod,
  4. Map<String, String>? queryParameters,
  5. Map<String, String>? headers,
  6. String? authority,
  7. Client? client,
  8. bool headersReplace = false,
  9. bool queryParametersReplace = false,
  10. bool? useJsonEncode,
  11. bool? useSSL,
})

Implementation

Future<http.Response> post(
  String path, {
  dynamic body,
  ProcessResponseMethod? processResponseMethod,
  Map<String, String>? queryParameters,
  Map<String, String>? headers,
  String? authority,
  http.Client? client,
  bool headersReplace = false,
  bool queryParametersReplace = false,
  bool? useJsonEncode,
  bool? useSSL,
}) async {
  return _method(
    path: path,
    body: body,
    requestMethod: _post,
    processResponseMethod: processResponseMethod,
    queryParameters: queryParameters,
    headers: headers,
    authority: authority,
    nameOfMethod: 'POST',
    client: client,
    headersReplace: headersReplace,
    queryParametersReplace: queryParametersReplace,
    useSSL: useSSL,
    useJsonEncode: useJsonEncode ?? this.useJsonEncode,
  );
}