vibe.d beta banner
get vibe.d

Asynchronous I/O that doesn’t get in your way, written in D

Function HTTPClient.connect

Sets up this HTTPClient to connect to a specific server.

void connect (
  string server,
  ushort port = cast(ushort)80u,
  bool use_tls = false,
  const(HTTPClientSettings) settings = defaultSettings()
) @safe;

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).


Sönke Ludwig, Jan Krüger


© 2012-2014 Sönke Ludwig


Subject to the terms of the MIT license, as written in the included LICENSE.txt file.