Commit Graph

20 Commits

Author SHA1 Message Date
226077cedd feat(smalltrip,problem): expose context key of middleware 2025-08-08 19:17:01 -03:00
982c2a4cb5 feat(smalltrip,problem): panic middleware 2025-07-30 19:15:18 -03:00
e158aebbd5 feat(smalltrip,problem): make WithDetail, WithDetailf and WithError append message if there is already one 2025-07-30 19:15:08 -03:00
b6a41a168b fix(smalltrip,problem): name NewInternalServerError instead of NewInternalError 2025-07-30 19:14:59 -03:00
2acd042352 chore(smalltrip,problem): add license header to problem package files 2025-07-30 19:14:46 -03:00
770eeaa25c feat(smalltrip,problem): use handler browser as default handler 2025-07-30 19:14:43 -03:00
5069ac6478 feat(smalltrip,problem): middleware support to set global handlers 2025-07-30 19:14:43 -03:00
47670daf55 feat(smalltrip,problem): handler browser 2025-07-30 19:14:43 -03:00
6fca911c8f feat(smalltrip,problem): handler template 2025-07-30 19:14:42 -03:00
793b6180e7 refactor(smalltrip,problems): remove fallbacks from handlers 2025-07-30 19:14:42 -03:00
0f1d7a01d8 refactor(smalltrip,problems): rename http.go to handlers.go 2025-07-29 19:18:28 -03:00
ed8f1e9601 feat(smalltrip,problems): use Problem interface on handlers 2025-07-29 19:18:28 -03:00
22f2ea5fa8 feat(smalltrip,problems): Problem interface 2025-07-29 19:18:27 -03:00
61d9bee554 fix(smalltrip,problems): make problems be structs with Problem embedded 2025-07-29 19:15:10 -03:00
6ed38cf1cf refactor(smalltrip,problems): define RetryAfter header parsing into separated type 2025-07-29 19:15:10 -03:00
42f2f114fa feat(smallstrip,problems): 400s codes constructors and problems 2025-07-29 19:14:36 -03:00
e8fdd9cbf5 refactor(smallstrip,problems): make 500 error types distinct and not aliases 2025-07-29 19:14:36 -03:00
3c08d5dbec feat(smalltrip,problems): 500s code constructors and problems 2025-07-04 19:15:27 -03:00
5fe4fae97e feat(smalltrip,problems): http handler for problems (wip) 2025-07-04 19:15:26 -03:00
9ce32a5f6b feat(smalltrip,problems): new problem package to handle 400 and 500 error codes
This is planned to replace the exceptions package, having a nicer and
more extendable API, based on the RFC 9457 (HTTP problems)
2025-07-04 19:15:24 -03:00