message body

The data carried after the headers in an HTTP request or response, such as a JSON document.

In more detail

Headers such as Content-Type and Content-Length describe it. Clients should read it as a stream, cap how much they accept from untrusted servers and release it when done.

Example

defer resp.Body.Close()

Related terms

Taught in

References