DoxigAlpha

Client

Fields of this type

Fields

#
allocator:Allocator
Used for all client allocations.
ca_bundle:if (disable_tls) void else std.crypto.Certificate.Bundle
= if (disable_tls) {} else .{}
ca_bundle_mutex:std.Thread.Mutex
= .{}
tls_buffer_size:if (disable_tls) u0 else usize
Used both for the reader and writer buffers.
ssl_key_log:?*std.crypto.tls.Client.SslKeyLog
If non-null, ssl secrets are logged to a stream.
next_https_rescan_certs:bool
When this is `true`, the next time this client performs an HTTPS request,
connection_pool:ConnectionPool
The pool of connections that can be reused (and currently in use).
read_buffer_size:usize
Each `Connection` allocates this amount for the reader buffer.
write_buffer_size:usize
Each `Connection` allocates this amount for the writer buffer.
http_proxy:?*Proxy
If populated, all http traffic travels through this third party.
https_proxy:?*Proxy
If populated, all https traffic travels through this third party.

A Least-Recently-Used cache of open connections to be reused.

Types

#
ConnectionPool
A Least-Recently-Used cache of open connections to be reused.

Release all associated resources with the client.

Functions

#
deinit
Release all associated resources with the client.
initDefaultProxies
Populates `http_proxy` and `https_proxy` via standard proxy environment variables.
connectTcp
Reuses a `Connection` if one matching `host` and `port` is already open.
connectUnix
Connect to `path` as a unix domain socket.
connectProxied
Connect to `proxied_host:proxied_port` using the specified proxy with HTTP
connect
Connect to `host:port` using the specified protocol.
request
Open a connection to the host specified by `uri` and prepare to send a HTTP request.
fetch
Perform a one-shot HTTP request with the provided options.

Error sets in this namespace

Error Sets

#

= std.options.http_disable_tls

Values

#
disable_tls
= std.options.http_disable_tls