Improve serve mux path

This commit is contained in:
2025-12-23 11:10:13 -05:00
parent 5201341251
commit 7cc4e7831e
2 changed files with 23 additions and 9 deletions

View File

@@ -22,7 +22,8 @@ type HTTPFunc struct {
}
type HTTPHandler struct {
Prefix string // path prefix under which to serve this handler/mux
Prefix string // path prefix under which to serve this handler/mux, used for convenience
Pattern string // pattern match
StripPrefix bool // strip path before sending to handler/mux
Handler http.Handler
}