Function connectHTTP
Returns a HTTPClient proxy object that is connected to the specified host.
LockedConnection!(vibe.http.client.HTTPClient) connectHTTP
(
string host,
ushort port = cast(ushort)0u,
bool use_tls = false,
const(HTTPClientSettings) settings = null
) @safe;
LockedConnection!(vibe.http.client.HTTPClient) connectHTTP
(
URL url,
const(HTTPClientSettings) settings = null
) @safe;
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.