open abstract method Null safety
Opens a HTTP connection.
The HTTP method to use is specified in
method, the server is
port, and the path (including
a possible query) is specified using
The path may also contain a URI fragment, which will be ignored.
Host header for the request will be set to the value
host is an IP address, it will still be used in the
This can be overridden through the
HttpClientRequest interface before
the request is sent.
For additional information on the sequence of events during an HTTP transaction, and the objects returned by the futures, see the overall documentation for the class HttpClient.
Future<HttpClientRequest> open( String method, String host, int port, String path);