diff --git a/server.go b/server.go index 1e059ae..50a9d3e 100644 --- a/server.go +++ b/server.go @@ -89,7 +89,7 @@ type server[RQB RequestBuilder] struct { serve [numServeStages][]ServeFunc[RQB] } -func NewServer[RQB RequestBuilder](serve ServeFunc[RQB]) (srv *server[RQB]) { +func NewServer[RQB RequestBuilder](serve func(req *Request[RQB]) (res *Response, err Error)) (srv *server[RQB]) { srv = &server[RQB]{ serve: [numServeStages][]ServeFunc[RQB]{}, }