post method

Future post(
  1. Uri path,
  2. Map<String, String?>? body, {
  3. Map<String, Uint8List?>? files,
  4. Map? params,
})

Make a simple POST request.

path is the destination URI and body contains the POST parameters that will be sent with the request.

Implementation

Future<dynamic> post(Uri path, Map<String, String?>? body,
    {Map<String, Uint8List?>? files, Map? params}) async {
  _logger.info('POST: $path body: ${DRAWLoggingUtils.jsonify(body)}');
  return _request(_kPostRequest, path,
      body: body, files: files, params: params as Map<String, String?>?);
}