WebClient

Undocumented in source.

Destructor

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

Members

Static functions

get
WebData get(string uri, string[string] headers, Duration timeout, void* ptls)

Static client GET method (synchronous) Param: - URL - headers - timeout - optional pointer to NNGTLS

get_async
NNGAio get_async(string uri, string[string] headers, webclienthandler handler, Duration timeout, void* context, void* ptls)

Static client GET method (asynchronous) Param: - URL - headers - handler callback - void function (Webdata*, void* context) - timeout - context - optional pointer to NNGTLS

post
WebData post(string uri, ubyte[] data, string[string] headers, Duration timeout, void* ptls)

Static client POST method (synchronous) Param: - URL - headers - timeout - optional pointer to NNGTLS

post_async
NNGAio post_async(string uri, ubyte[] data, string[string] headers, webclienthandler handler, Duration timeout, void* context, void* ptls)

Static client POST method (asynchronous) Param: - URL - headers - handler callback - void function (Webdata*, void* context) - timeout - context - optional pointer to NNGTLS