post method

Future<NitroTestResponse> post(
  1. String path, {
  2. Object? body,
  3. Map<String, String>? headers,
})

Issues a POST request with an optional body.

Implementation

Future<NitroTestResponse> post(
  String path, {
  Object? body,
  Map<String, String>? headers,
}) => request(HttpMethod.post, path, body: body, headers: headers);