SslClientConnection

Class representing a single SSL client connection. Can only be called from inside a Task.

Constructors

this
this()

Constructor

Members

Classes

SslException
class SslException

Exception class thrown on errors.

Functions

connect
void connect(cstring host_name, cstring host_port)

Create an SSL connection. Blocks the calling task until the handshake is complete.

error
void error(cstring host_name, istring func_name, istring msg, istring file, long line)

Throw a reusable IOException, with the provided message, function name and error code.

read
mstring read(mstring buffer)

Reads a string from the SSL connection

ssl_error
void ssl_error(cstring host_name, istring func_name, const(char*) c_msg, istring file, long line)

Throw a reusable IOException, with the provided message, function name and error code.

validateCertificate
void validateCertificate(cstring host_name)

Validate the X509 certificate.

write
void write(cstring request)

Write a string to the SSL connection

Meta