vibe.d beta banner
get vibe.d
0.10.1

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

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;

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.

Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012-2014 RejectedSoftware e.K.

License

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