Function deinit [src]
Release all associated resources with the client.
All pending requests must be de-initialized and all active connections released
before calling this function.
Prototype
pub fn deinit(client: *Client) void
Parameters
client: *Client
Source
pub fn deinit(client: *Client) void {
assert(client.connection_pool.used.first == null); // There are still active requests.
client.connection_pool.deinit(client.allocator);
if (!disable_tls)
client.ca_bundle.deinit(client.allocator);
client.* = undefined;
}