StreamResponse streams a response object to the client
(w http.ResponseWriter, data io.ReadCloser)
| 29 | |
| 30 | // StreamResponse streams a response object to the client |
| 31 | func StreamResponse(w http.ResponseWriter, data io.ReadCloser) { |
| 32 | w.Header().Set("Content-Type", DefaultContentTypeV1_1) |
| 33 | if _, err := copyBuf(w, data); err != nil { |
| 34 | fmt.Printf("ERROR in stream: %v\n", err) |
| 35 | } |
| 36 | data.Close() |
| 37 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…