MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / HandlerFromMux

Function HandlerFromMux

internal/test/server/server.gen.go:612–616  ·  view source on GitHub ↗

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

(si ServerInterface, r chi.Router)

Source from the content-addressed store, hash-verified

610
611// HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
612func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler {
613 return HandlerWithOptions(si, ChiServerOptions{
614 BaseRouter: r,
615 })
616}
617
618func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler {
619 return HandlerWithOptions(si, ChiServerOptions{

Callers

nothing calls this directly

Calls 1

HandlerWithOptionsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…