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

Function HumaMiddleware

adapters/humafiber/humafiber_context_test.go:214–220  ·  view source on GitHub ↗
(ctx huma.Context, next func(huma.Context))

Source from the content-addressed store, hash-verified

212}
213
214func HumaMiddleware(ctx huma.Context, next func(huma.Context)) {
215 value := ctx.Header(HeaderNameHuma)
216 if value != "" {
217 ctx = huma.WithValue(ctx, contextValueHuma, value)
218 }
219 next(ctx)
220}
221
222func TestHumaFiber(t *testing.T) {
223 ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)

Callers

nothing calls this directly

Calls 1

HeaderMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…