mirror of
https://github.com/golang/go
synced 2024-11-18 10:34:51 -07:00
net/http/httptest: doc tweaks
From lost-in-flight comments on CL 32190. Change-Id: I2029cbac6d24b5944a796b359080011ec3a8da92 Reviewed-on: https://go-review.googlesource.com/32210 Reviewed-by: Caleb Spare <cespare@gmail.com> Reviewed-by: Martin Möhrmann <martisch@uos.de>
This commit is contained in:
parent
8e4ea2f5e8
commit
f697cf2255
@ -29,8 +29,8 @@ type ResponseRecorder struct {
|
|||||||
// automatic Content-Type), use the Result method.
|
// automatic Content-Type), use the Result method.
|
||||||
HeaderMap http.Header
|
HeaderMap http.Header
|
||||||
|
|
||||||
// Body is the buffer that a Handler's Write calls are sent to.
|
// Body is the buffer to which the Handler's Write calls are sent.
|
||||||
// If nil, the Writes are silently discard.
|
// If nil, the Writes are silently discarded.
|
||||||
Body *bytes.Buffer
|
Body *bytes.Buffer
|
||||||
|
|
||||||
// Flushed is whether the Handler called Flush.
|
// Flushed is whether the Handler called Flush.
|
||||||
|
Loading…
Reference in New Issue
Block a user