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.

@safe
connectHTTP
(
string host
,
ushort port = 0
,
bool use_tls = false
,)

Meta