Reader contains the IO reader and its length, and custom ContentType and other headers.
| 12 | |
| 13 | // Reader contains the IO reader and its length, and custom ContentType and other headers. |
| 14 | type Reader struct { |
| 15 | ContentType string |
| 16 | ContentLength int64 |
| 17 | Reader io.Reader |
| 18 | Headers map[string]string |
| 19 | } |
| 20 | |
| 21 | // Render (Reader) writes data with custom ContentType and headers. |
| 22 | func (r Reader) Render(w http.ResponseWriter) (err error) { |
nothing calls this directly
no outgoing calls
no test coverage detected