1
0
Fork 0
zar/deps/hzzp
2020-07-09 01:16:31 +01:00
..
src first commit 2020-07-09 01:16:31 +01:00
.gitignore first commit 2020-07-09 01:16:31 +01:00
build.zig first commit 2020-07-09 01:16:31 +01:00
LICENSE first commit 2020-07-09 01:16:31 +01:00
README.md first commit 2020-07-09 01:16:31 +01:00

HZZP

Hzzp is a HTTP/1.1 library for Zig.

BaseClient and BaseServer

These are designed with performance in mind, no allocations are made by the parser. However, you must guarentee that the buffer provided to create is long enough for the largest chunk that will be parsed. In BaseClient this is will be a Header: value pair (including CRLF), in BaseServer it will be the requested path. If your buffer is too short you readEvent will throw a BufferOverflow error.

Todo

  • low-level allocation-free client and server parser
  • higher-level allocating, but easier to use client and server parser
  • very simple request wrapper (probably around the high-level allocating client)
  • "prettyify" error sets