get method

  1. @override
Future<HttpClientRequest> get(
  1. String host,
  2. int port,
  3. String path
)
override

Opens a HTTP connection using the GET method.

The server is specified using host and port, and the path (including a possible query) is specified using path.

See open for details.

Implementation

@override
Future<HttpClientRequest> get(String host, int port, String path) {
  return client.get(host, port, path).then((HttpClientRequest request) async {
    logger.onRequest(request);
    final HttpClientResponse response = await request.close();
    logger.onResponse(request, response);
    return request;
  });
}