MCPcopy Create free account
hub / github.com/kataras/iris / setBody

Function setBody

context/context.go:2654–2656  ·  view source on GitHub ↗
(r *http.Request, data []byte)

Source from the content-addressed store, hash-verified

2652}
2653
2654func setBody(r *http.Request, data []byte) {
2655 r.Body = io.NopCloser(bytes.NewBuffer(data))
2656}
2657
2658const disableRequestBodyConsumptionContextKey = "iris.request.body.record"
2659

Callers 4

GetFormFunction · 0.85
GetBodyFunction · 0.85
context.goFile · 0.85
ReadMultipartRelatedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…