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

Function writeResponseWithPanic

huma.go:593–597  ·  view source on GitHub ↗
(api API, ctx Context, status int, ct string, body any)

Source from the content-addressed store, hash-verified

591}
592
593func writeResponseWithPanic(api API, ctx Context, status int, ct string, body any) {
594 if err := writeResponse(api, ctx, status, ct, body); err != nil {
595 panic(err)
596 }
597}
598
599// transformAndWrite is a utility function to transform and write a response.
600// It is best-effort as the status code and headers may have already been sent.

Callers 1

RegisterFunction · 0.85

Calls 1

writeResponseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…