request method

TestRequest request(
  1. String method,
  2. String path
)

Create a request with a custom HTTP method.

For testing custom HTTP methods or verbs not covered by the standard convenience methods.

method The HTTP method (e.g., 'TRACE', 'CONNECT'). path The path to request. Returns a TestRequest builder for the custom request.

Implementation

TestRequest request(String method, String path) {
  return TestRequest(_client, method, path, baseUrl);
}