Write implements http.ResponseWriter. The data in buf is written to rw.Body, if not nil.
(buf []byte)
| 101 | // Write implements http.ResponseWriter. The data in buf is written to |
| 102 | // rw.Body, if not nil. |
| 103 | func (rw *ResponseRecorder) Write(buf []byte) (int, error) { |
| 104 | rw.writeHeader(buf, "") |
| 105 | if rw.Body != nil { |
| 106 | rw.Body.Write(buf) |
| 107 | } |
| 108 | return len(buf), nil |
| 109 | } |
| 110 | |
| 111 | // WriteString implements [io.StringWriter]. The data in str is written |
| 112 | // to rw.Body, if not nil. |
nothing calls this directly
no test coverage detected