Skip to content

Commit

Permalink
vibe.http.client: Clarify that HTTPClient.connect does not actually c…
Browse files Browse the repository at this point in the history
…onnect

Avoid confusing people attempting to debug Vibe.d.
  • Loading branch information
CyberShadow committed May 26, 2021
1 parent a9c1d24 commit e9f1942
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion http/vibe/http/client.d
Expand Up @@ -409,9 +409,11 @@ final class HTTPClient {
static void setTLSSetupCallback(void function(TLSContext) @safe func) @trusted { ms_tlsSetup = func; }

/**
Connects to a specific server.
Sets up this HTTPClient to connect to a specific server.
This method may only be called if any previous connection has been closed.
The actual connection is deferred until a request is initiated (using `HTTPClient.request`).
*/
void connect(string server, ushort port = 80, bool use_tls = false, const(HTTPClientSettings) settings = defaultSettings)
{
Expand Down

0 comments on commit e9f1942

Please sign in to comment.