begin adding httphi tests

This commit is contained in:
Patricio Whittingslow
2026-07-25 19:46:42 -03:00
parent 7b17218f26
commit c25bedcb2a
2 changed files with 129 additions and 2 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ type job struct {
}
type Mux interface {
Handler(get Method, uri []byte) HandlerFunc
LookupHandler(get Method, uri []byte) HandlerFunc
}
type RouterConfig struct {
@@ -196,7 +196,7 @@ func (r *Router) goroHandle(exch *Exchange, backoff lneto.BackoffStrategy, mux M
// Mux URI.
uri := reqhdr.RequestURI()
meth := reqhdr.Method()
handler := mux.Handler(MethodFromBytes(meth), uri)
handler := mux.LookupHandler(MethodFromBytes(meth), uri)
if handler != nil {
handler(exch)
}