HttpsClient

HTTPS client.

Constructors

this
this(Duration timeout)

Constructor.

Members

Functions

adaptConnection
IConnection adaptConnection(IConnection conn)
Undocumented in source. Be warned that the author may not have intended to support it.
request
void request(HttpRequest request)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

adapter
SSLAdapter adapter;

SSL context and adapter to use for TLS.

ctx
SSLContext ctx;

SSL context and adapter to use for TLS.

Inherited Members

From HttpClient

connector
Connector connector;
Undocumented in source.
timer
TimeoutAdapter timer;
Undocumented in source.
conn
IConnection conn;
Undocumented in source.
inBuffer
DataVec inBuffer;
Undocumented in source.
currentRequest
HttpRequest currentRequest;
Undocumented in source.
currentResponse
HttpResponse currentResponse;
Undocumented in source.
expect
size_t expect;
Undocumented in source.
onConnect
void onConnect()
Undocumented in source. Be warned that the author may not have intended to support it.
sendRequest
void sendRequest(HttpRequest request)
Undocumented in source. Be warned that the author may not have intended to support it.
sendRawRequest
void sendRawRequest(HttpRequest request)
Undocumented in source. Be warned that the author may not have intended to support it.
onNewResponse
void onNewResponse(Data data)
Undocumented in source. Be warned that the author may not have intended to support it.
onHeadersReceived
void onHeadersReceived()
Undocumented in source. Be warned that the author may not have intended to support it.
onData
void onData(Data[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
onContinuation
void onContinuation(Data data)
Undocumented in source. Be warned that the author may not have intended to support it.
onDone
void onDone()
Undocumented in source. Be warned that the author may not have intended to support it.
processResponse
void processResponse(string reason)
Undocumented in source. Be warned that the author may not have intended to support it.
onDisconnect
void onDisconnect(string reason, DisconnectType type)
Undocumented in source. Be warned that the author may not have intended to support it.
adaptConnection
IConnection adaptConnection(IConnection conn)
Undocumented in source. Be warned that the author may not have intended to support it.
agent
string agent;

User-Agent header to advertise.

keepAlive
bool keepAlive;

Keep connection alive after one request.

request
void request(HttpRequest request)

Send a HTTP request.

connected
bool connected()

Returns true if a connection is active (whether due to an in-flight request or due to keep-alive).

disconnect
void disconnect(string reason)

Close the connection to the HTTP server.

handleResponse
void delegate(HttpResponse response, string disconnectReason) handleResponse;

User-supplied callback for handling the response.

Meta