vibe.d beta banner
get vibe.d

Class HTTPClient

Implementation of a HTTP 1.0/1.1 client with keep-alive support.

Note that it is usually recommended to use requestHTTP for making requests as that will use a pool of HTTPClient instances to keep the number of connection establishments low while not blocking requests from different tasks.

Inherits from

  • Object (base class)


Name Type Description
settings [get] const(HTTPClientSettings) Get the current settings for the HTTP client.


Name Description
connect Connects to a specific server.
disconnect Forcefully closes the TCP connection.
request Performs a HTTP request.
setTLSSetupCallback Sets a callback that will be called for every TLS context that is created.
setUserAgentString Sets the default user agent string for new HTTP requests.

Sönke Ludwig, Jan Krüger


© 2012-2014 RejectedSoftware e.K.


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