danthegoodman1 / Gildra

Mutli-tenant TLS terminating proxy for L7 traffic. Supports unlimited domains and certs with HTTP/1.1, 2, and 3. Manages ACME HTTP challenges magically. Sits in your infrastructure.
Other
5 stars 0 forks source link

light http framework #26

Closed danthegoodman1 closed 9 months ago

danthegoodman1 commented 9 months ago

Would be a lot better if we had a echo-like framework around handling HTTP requests where we could have error handlers, middelware with a custom context (for attaching info to a single request context), and more.

This would improve:

  1. Request enrichement (fqdn, isTLS, etc.)
  2. Error handling (return an error, figure out error code by the error type)
  3. code simplicity
  4. extensibility and routing simplicity
danthegoodman1 commented 9 months ago

maybe we don't need middleware, but a standard request context with chaining of handlers (and early abort if an error) will be helpful. That way we can do things like take a different route if websocket vs not