getUrl method

  1. @override
Future<HttpClientRequest> getUrl(
  1. Uri? url
)
override

Opens a HTTP connection using the GET method.

The URL to use is specified in url.

See openUrl for details.

Implementation

@override
Future<HttpClientRequest> getUrl(Uri? url) {
  // ignore: invalid_use_of_visible_for_testing_member
  return super.noSuchMethod(Invocation.method(#getUrl, [url]),
          returnValue: Future.value(MockHttpClientRequest()))
      as Future<HttpClientRequest>;
}