TestRequest request(String path)

Executes a request with no Authorization header to the application under test.

The path will be appended to the baseURL of this instance. You may omit or include the leading slash in the path, the result will be the same.

Source

TestRequest request(String path) {
  TestRequest r = new TestRequest()
    ..baseURL = this.baseURL
    ..path = path
    .._client = _client
    ..headers = new Map.from(defaultHeaders);

  return r;
}