(api API, ctx Context, status int, ct string, body any)
| 591 | } |
| 592 | |
| 593 | func 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. |
no test coverage detected
searching dependent graphs…