Write writes the data to the buffer and connection as part of an HTTP reply.
(b []byte)
| 107 | |
| 108 | // Write writes the data to the buffer and connection as part of an HTTP reply. |
| 109 | func (r *responseDupper) Write(b []byte) (int, error) { |
| 110 | r.Buffer.Write(b) |
| 111 | return r.ResponseWriter.Write(b) |
| 112 | } |
| 113 | |
| 114 | // WriteHeader records the status and sends an HTTP response header with status code. |
| 115 | func (r *responseDupper) WriteHeader(s int) { |
no outgoing calls