(ctx huma.Context, next func(huma.Context))
| 212 | } |
| 213 | |
| 214 | func 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 | |
| 222 | func TestHumaFiber(t *testing.T) { |
| 223 | ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) |
nothing calls this directly
no test coverage detected
searching dependent graphs…