Dusty, new HTTP server using async I/O and coroutines
github.com·19h·
Discuss: r/Zig
Flag this post

Dusty is a simple HTTP server built on top of zio and llhttp. The API is very much inspired by Karl Seguin’s http.zig, which is a great project and I would be happy using that, if I didn’t need to run multiple network services inside the same application.

This is project is in very early stages, don’t use it unless you want to experiment or perhaps even contribute.

Features

  • Asynchronous I/O for multiple concurrent connections on a single CPU thread
  • Requests handled in lightweight coroutines
  • Router with support for parameters and wildcards
  • Supports HTTP/1.0 and HTTP/1.1
  • Supports chunked transfer encoding in both request/response bodies

Example

cons...

Similar Posts

Loading similar posts...