MCPcopy
hub / github.com/danielgtaylor/huma / Handle

Method Handle

api.go:59–59  ·  view source on GitHub ↗
(op *Operation, handler func(ctx Context))

Source from the content-addressed store, hash-verified

57// like a status code, response headers, and a response body.
58type Adapter interface {
59 Handle(op *Operation, handler func(ctx Context))
60 ServeHTTP(http.ResponseWriter, *http.Request)
61}
62

Callers 5

NewAPIFunction · 0.65
registerDocsRouteMethod · 0.65
HandleMethod · 0.65
ExampleAdapter_handleFunction · 0.65
RegisterFunction · 0.65

Implementers 8

fiberV2Adapteradapters/humafiber/humafiber_v2.go
fiberAdapteradapters/humafiber/humafiber.go
bunCompatAdapteradapters/humabunrouter/humabunrouter.g
bunAdapteradapters/humabunrouter/humabunrouter.g
Muxadapters/humaflow/flow/flow.go
gMuxadapters/humamux/humamux.go
httprouterAdapteradapters/humahttprouter/humahttprouter
chiAdapteradapters/humachi/humachi.go

Calls

no outgoing calls

Tested by 1

ExampleAdapter_handleFunction · 0.52