request method

Future<NitroTestResponse> request(
  1. HttpMethod method,
  2. String path, {
  3. String customMethod = '',
  4. Object? body,
  5. Map<String, String>? headers,
})

Issues a request with an explicit method.

Implementation

Future<NitroTestResponse> request(
  HttpMethod method,
  String path, {
  String customMethod = '',
  Object? body,
  Map<String, String>? headers,
}) => _drive(
  method,
  path,
  customMethod: customMethod,
  body: body,
  headers: headers,
);