HTTPRequest

Embodies the notion of an HTTP request.

Values aggregated in a struct for easier passing around.

Constructors

this
this(int id, string url, string authorisationHeader, string clientID, bool verifyPeer, string caBundleFile, string[string] customHeaders, HTTPVerb verb, immutable(ubyte)[] body, string contentType, string caller)

Constructor.

Members

Variables

authorisationHeader
string authorisationHeader;

The value of the Authorization header, like "Bearer asdfasdfkljasfl".

body
immutable(ubyte)[] body;

The textual body of the request, as an ubyte[] array.

caBundleFile
string caBundleFile;

Path to a certificate bundle file.

caller
string caller;

The name of the calling function.

clientID
string clientID;

The value of the Client-ID header.

contentType
string contentType;

The HTTP content type of the request.

customHeaders
string[string] customHeaders;

A string[string] associative array of custom headers.

id
int id;

Unique ID of the request, in terms of an index of Querier.responseBucket.

url
string url;

URL of the request.

verb
HTTPVerb verb;

The HTTP verb of the request.

verifyPeer
bool verifyPeer;

Whether or not to verify peers, to allow it being overridden to false.