vibe.http.client

A simple HTTP/1.1 client implementation.

Public Imports

vibe.core.net
public import vibe.core.net;
Undocumented in source.
vibe.http.common
public import vibe.http.common;
Undocumented in source.
vibe.inet.url
public import vibe.inet.url;
Undocumented in source.

Members

Classes

HTTPClient
class HTTPClient

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

HTTPClientRequest
class HTTPClientRequest

Represents a HTTP client request (as sent to the server).

HTTPClientResponse
class HTTPClientResponse

Represents a HTTP client response (as received from the server).

HTTPClientSettings
class HTTPClientSettings

Defines an HTTP/HTTPS proxy request or a connection timeout for an HTTPClient.

Functions

connectHTTP
auto connectHTTP(string host, ushort port, bool use_tls, const(HTTPClientSettings) settings)
auto connectHTTP(URL url, const(HTTPClientSettings) settings)

Returns a HTTPClient proxy object that is connected to the specified host.

getFilteredHost
auto getFilteredHost(URL url)

Returns clean host string. In case of unix socket it performs urlDecode on host.

requestHTTP
HTTPClientResponse requestHTTP(string url, void delegate(scope HTTPClientRequest req) requester, const(HTTPClientSettings) settings)
HTTPClientResponse requestHTTP(URL url, void delegate(scope HTTPClientRequest req) requester, const(HTTPClientSettings) settings)
void requestHTTP(string url, void delegate(scope HTTPClientRequest req) requester, void delegate(scope HTTPClientResponse req) responder, const(HTTPClientSettings) settings)
void requestHTTP(URL url, void delegate(scope HTTPClientRequest req) requester, void delegate(scope HTTPClientResponse req) responder, const(HTTPClientSettings) settings)

Performs a synchronous HTTP request on the specified URL.

Properties

defaultSettings
const(HTTPClientSettings) defaultSettings [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta

License

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

Authors

Sönke Ludwig, Jan Krüger