This package is deprecated and archived for the foreseeable future due to the zig master being an ever changing target and my lack of time to address and fix things that have changed. Those looking for a similar experience should look at haze/zelda.
A HTTP request library for Zig with HTTPS support.
- HTTPS support, including trust handling (provided by iguanaTLS)
- A relatively simple interface.
- Passing
null
as thetrust_chain
in Request.init will tell zfetch to not check server certificates. If you do not trust your connection, please provide a iguanaTLS x509 certificate chain. - zfetch only does rudimentary checks to ensure functions are called in the right order. These are nowhere near enough to prevent you from doing so, please call the functions in the order they are intended to be called in.
# gyro.zzz
...
deps:
truemedian/zfetch: ^0.1.1
...
# zig.mod
...
dependencies:
- type: git
path: https://github.com/truemedian/zfetch
...
Assuming zfetch is recursively checked out at
libs/zfetch
// build.zig
const zfetch = @import("libs/zfetch/build.zig");
...
exe.addPackage(zfetch.getPackage(b, "libs/zfetch"));
...
see examples.
More Coming Soon...?