net/http/httptest.ResponseRecorder.Body (field)
8 uses
net/http/httptest (current package)
recorder.go#L40: Body *bytes.Buffer
recorder.go#L54: Body: new(bytes.Buffer),
recorder.go#L109: if rw.Body != nil {
recorder.go#L110: rw.Body.Write(buf)
recorder.go#L119: if rw.Body != nil {
recorder.go#L120: rw.Body.WriteString(str)
recorder.go#L181: if rw.Body != nil {
recorder.go#L182: res.Body = io.NopCloser(bytes.NewReader(rw.Body.Bytes()))
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |