Http

An HTTP client.

Constructors

this
this()

Default constructor

this
this(string host, ushort port = 0)

Construct the HTTP client with the target host.

Destructor

~this
~this()

Destructor

Members

Classes

Request
class Request

Define a HTTP request.

Response
class Response

Define a HTTP response.

Functions

sendRequest
Response sendRequest(Request request, Duration timeout = Duration.zero())

Send a HTTP request and return the server's response.

setHost
void setHost(string host, ushort port = 0)

Set the target host.

Meta