vibe.d beta banner
get vibe.d
0.10.0

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

Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012-2014 Sönke Ludwig

License

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