MCPcopy
hub / github.com/gofiber/fiber / Body

Method Body

req_interface_gen.go:40–40  ·  view source on GitHub ↗

Body contains the raw body submitted in a POST request. This method will decompress the body if the 'Content-Encoding' header is provided. It returns the original (or decompressed) body data which is valid only within the handler. Don't store direct references to the returned data. If you need to ke

()

Source from the content-addressed store, hash-verified

38 // Don't store direct references to the returned data.
39 // If you need to keep the body's data later, make a copy or use the Immutable option.
40 Body() []byte
41 // RequestCtx returns *fasthttp.RequestCtx that carries a deadline
42 // a cancellation signal, and other values across API boundaries.
43 RequestCtx() *fasthttp.RequestCtx

Implementers 1

Calls

no outgoing calls