HttpRequest

Undocumented in source.
version(none)
class HttpRequest {
HttpResponse responseData;
HttpRequestParameters parameters;
size_t bodyBytesSent;
size_t bodyBytesReceived;
State state;
}

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

abort
void abort()

Aborts this request. Due to the nature of the HTTP protocol, aborting one request will result in all subsequent requests made on this same connection to be aborted as well.

perform
HttpResponse perform()

Sends now and waits for the request to finish, returning the response.

send
void send()

Sends the request asynchronously.

waitForCompletion
HttpResponse waitForCompletion()

Waits for the request to finish or timeout, whichever comes furst.

Variables

onDataReceived
void delegate(AsynchronousHttpRequest) onDataReceived;

Called when data is received. Check the state to see what data is available.

Meta