laytan / odin-http

A HTTP/1.1 client/server implementation for Odin.
https://odin-http.laytan.dev/
MIT License
96 stars 9 forks source link

Adapt middleware API's for non-blocking #3

Open laytan opened 11 months ago

laytan commented 11 months ago

The non-blocking IO in #1 added callbacks for operations like retrieving the body. But more importantly this removes the guarantee that a response is made synchronously. Middlewares can no longer assume a request is done after they call the next handler.

laytan commented 3 weeks ago

Might just want to document this, don't really see a good fix