Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tensorush/zig-cookie
Zig port of cookie library for HTTP cookie storage.
https://github.com/tensorush/zig-cookie
cookie cookie-jar cookie-parser cookiejar cookies http http-cookie http-cookiejar http-cookies rfc rfc-6265 spec specification zig zig-lang zig-language zig-lib zig-library zig-package ziglang
Last synced: 20 days ago
JSON representation
Zig port of cookie library for HTTP cookie storage.
- Host: GitHub
- URL: https://github.com/tensorush/zig-cookie
- Owner: tensorush
- License: mit
- Created: 2024-03-05T18:13:03.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T11:58:38.000Z (5 months ago)
- Last Synced: 2024-10-16T19:21:25.627Z (2 months ago)
- Topics: cookie, cookie-jar, cookie-parser, cookiejar, cookies, http, http-cookie, http-cookiejar, http-cookies, rfc, rfc-6265, spec, specification, zig, zig-lang, zig-language, zig-lib, zig-library, zig-package, ziglang
- Language: Zig
- Homepage: https://tensorush.github.io/zig-cookie/
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zig-cookie
[![CI][ci-shd]][ci-url]
[![CD][cd-shd]][cd-url]
[![DC][dc-shd]][dc-url]
[![CC][cc-shd]][cc-url]
[![LC][lc-shd]][lc-url]## Zig port of [cookie library](https://github.com/rwf2/cookie-rs) for HTTP cookie storage.
### :rocket: Usage
- Add `cookie` dependency to `build.zig.zon`.
```sh
zig fetch --save https://github.com/tensorush/zig-cookie/archive/.tar.gz
```- Use `cookie` dependency in `build.zig`.
```zig
const cookie_dep = b.dependency("cookie", .{
.target = target,
.optimize = optimize,
});
const cookie_mod = cookie_dep.module("cookie");
.root_module.addImport("cookie", cookie_mod);
```[ci-shd]: https://img.shields.io/github/actions/workflow/status/tensorush/zig-cookie/ci.yaml?branch=main&style=for-the-badge&logo=github&label=CI&labelColor=black
[ci-url]: https://github.com/tensorush/zig-cookie/blob/main/.github/workflows/ci.yaml
[cd-shd]: https://img.shields.io/github/actions/workflow/status/tensorush/zig-cookie/cd.yaml?branch=main&style=for-the-badge&logo=github&label=CD&labelColor=black
[cd-url]: https://github.com/tensorush/zig-cookie/blob/main/.github/workflows/cd.yaml
[dc-shd]: https://img.shields.io/badge/click-F6A516?style=for-the-badge&logo=zig&logoColor=F6A516&label=docs&labelColor=black
[dc-url]: https://tensorush.github.io/zig-cookie
[cc-shd]: https://img.shields.io/codecov/c/github/tensorush/zig-cookie?style=for-the-badge&labelColor=black
[cc-url]: https://app.codecov.io/gh/tensorush/zig-cookie
[lc-shd]: https://img.shields.io/github/license/tensorush/zig-cookie.svg?style=for-the-badge&labelColor=black
[lc-url]: https://github.com/tensorush/zig-cookie/blob/main/LICENSE