vibe.d beta banner
get vibe.d
0.7.31

Class HTTPClient

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

class HTTPClient;

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.

Properties

Properties

NameTypeDescription
settings[get]const(HTTPClientSettings)Get the current settings for the HTTP client.

Methods

Methods

NameDescription
connectConnects to a specific server.
disconnectForcefully closes the TCP connection.
requestPerforms a HTTP request.
setTLSSetupCallbackSets a callback that will be called for every TLS context that is created.
setUserAgentStringSets the default user agent string for new HTTP requests.
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.