Files
pixa/internal/middleware
sneak bc6464a3c5
check / check (push) Waiting to run
Label request metrics with standard HTTP methods only (closes #274)
The method label was each request's method as sent, and Go's HTTP
server accepts any method name, so made-up methods added series to the
registry that were never removed. It is now the method only for GET,
HEAD, POST, PUT, PATCH, DELETE, OPTIONS, CONNECT and TRACE, and "other"
for any other. go-http-metrics reads the method from the request it is
handed, so the middleware hands it a copy carrying the label and serves
the next handler the original request.

Model: opus-5-5
2026-10-15 19:01:46 +00:00
..