post method

void post(
  1. Pattern url, {
  2. Object? json,
  3. List<int>? body,
  4. String? contentType,
  5. int status = 200,
  6. Map<String, String> headers = const {},
  7. Object? throws,
})

Answers POST [url]. See stub.

Implementation

void post(
  Pattern url, {
  Object? json,
  List<int>? body,
  String? contentType,
  int status = 200,
  Map<String, String> headers = const {},
  Object? throws,
}) => stub(
  'POST',
  url,
  json: json,
  body: body,
  contentType: contentType,
  status: status,
  headers: headers,
  throws: throws,
);