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

Function Handler

examples/streaming/stdhttp/sse/streaming.gen.go:123–125  ·  view source on GitHub ↗

Handler creates http.Handler with routing matching OpenAPI spec.

(si ServerInterface)

Source from the content-addressed store, hash-verified

121
122// Handler creates http.Handler with routing matching OpenAPI spec.
123func Handler(si ServerInterface) http.Handler {
124 return HandlerWithOptions(si, StdHTTPServerOptions{})
125}
126
127// ServeMux is an abstraction of [http.ServeMux].
128type ServeMux interface {

Callers 1

NewServerFunction · 0.70

Calls 1

HandlerWithOptionsFunction · 0.70

Tested by

no test coverage detected