connectHTTP

Returns a HTTPClient proxy object that is connected to the specified host.

Internally, a connection pool is used to reuse already existing connections. Note that usually requestHTTP should be used for making requests instead of manually using a HTTPClient to do so.

  1. auto connectHTTP(string host, ushort port, bool use_tls, const(HTTPClientSettings) settings)
    @safe
    connectHTTP
    (
    string host
    ,
    ushort port = 0
    ,
    bool use_tls = false
    ,)
  2. auto connectHTTP(URL url, const(HTTPClientSettings) settings)

Meta