post static method

Context post(
  1. String path, {
  2. Object? body,
  3. Map<String, String>? headers,
  4. String remoteIp = '127.0.0.1',
})

Creates a test context with a POST request.

Implementation

static Context post(
  String path, {
  Object? body,
  Map<String, String>? headers,
  String remoteIp = '127.0.0.1',
}) {
  return _create(
    'POST',
    path,
    body: body,
    headers: headers,
    remoteIp: remoteIp,
  );
}