http.go
func (resp *Response) Body() []byte {
	if resp.bodyStream != nil {
		bodyBuf := resp.bodyBuffer()
		bodyBuf.Reset()
		_, err := copyZeroAlloc(bodyBuf, resp.bodyStream)
		resp.closeBodyStream()
		if err != nil {
			bodyBuf.SetString(err.Error())
		}
	}
	return resp.bodyBytes()
}
func (resp *Response) Body() []byte {
	if resp.bodyStream != nil {
		bodyBuf := resp.bodyBuffer()
		bodyBuf.Reset()
		_, err := copyZeroAlloc(bodyBuf, resp.bodyStream)
		resp.closeBodyStream()
		if err != nil {
			bodyBuf.SetString(err.Error())
		}
	}
	return resp.bodyBytes()
}
func ( resp * Response ) Body ( ) [ ] byte { if resp . bodyStream != nil { bodyBuf := resp . bodyBuffer ( ) bodyBuf . Reset ( ) _ , err := copyZeroAlloc ( bodyBuf , resp . bodyStream ) resp . closeBodyStream ( ) if err != nil { bodyBuf . SetString ( err . Error ( ) ) } } return resp . bodyBytes ( ) }
// Body returns response body.
//
// The returned body is valid until the response modification.
Body returns response body . The returned body is valid until the response modification .