postRequest method

Future<InspectionResult> postRequest(
  1. String path, {
  2. required Map<String, String> formData,
})

Sends a POST request and inspects the response.

Implementation

Future<InspectionResult> postRequest(
  String path, {
  required Map<String, String> formData,
}) async {
  return request(
    'POST',
    path,
    options: DevRequestOptions(
      formData: formData,
      contentType: Headers.formUrlEncodedContentType,
    ),
  );
}