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

Function Handler

examples/overlay/api/ping.gen.go:125–127  ·  view source on GitHub ↗

Handler creates http.Handler with routing matching OpenAPI spec.

(si ServerInterface)

Source from the content-addressed store, hash-verified

123
124// Handler creates http.Handler with routing matching OpenAPI spec.
125func Handler(si ServerInterface) http.Handler {
126 return HandlerWithOptions(si, GorillaServerOptions{})
127}
128
129type GorillaServerOptions struct {
130 BaseURL string

Callers

nothing calls this directly

Calls 1

HandlerWithOptionsFunction · 0.70

Tested by

no test coverage detected