RecordRequestBody same as the Application's DisableBodyConsumptionOnUnmarshal configuration field but acts only for the current request. It makes the request body readable more than once.
(b bool)
| 2661 | // configuration field but acts only for the current request. |
| 2662 | // It makes the request body readable more than once. |
| 2663 | func (ctx *Context) RecordRequestBody(b bool) { |
| 2664 | ctx.values.Set(disableRequestBodyConsumptionContextKey, b) |
| 2665 | } |
| 2666 | |
| 2667 | // IsRecordingBody reports whether the request body can be readen multiple times. |
| 2668 | func (ctx *Context) IsRecordingBody() bool { |