Skip to content

nektro/zfetch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

126 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zfetch

loc license nektro @ github sponsors Zig Zigmod

A HTTP request library for Zig with HTTPS support.

Warning

This package is deprecated and only being maintained to work with the latest version of Zig. Any new usage should switch to std.http.Client.

Features

  • HTTPS support, including trust handling (provided by iguanaTLS)
  • A relatively simple interface.

Notes

  • Passing null as the trust_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.

Adding zfetch as a package

Gyro

# gyro.zzz

...

deps:
  truemedian/zfetch: ^0.1.1

...

Zigmod

# zig.mod

...

dependencies:
  - type: git
    path: https://github.com/truemedian/zfetch

...

Submodules

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"));

...

Examples

see examples.

More Coming Soon...?

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Zig 100.0%