(str *Stream, contentLength int64, done chan<- struct{})
| 98 | var _ io.ReadCloser = &hijackableBody{} |
| 99 | |
| 100 | func newResponseBody(str *Stream, contentLength int64, done chan<- struct{}) *hijackableBody { |
| 101 | return &hijackableBody{ |
| 102 | body: *newBody(str, contentLength), |
| 103 | reqDone: done, |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | func (r *hijackableBody) Read(b []byte) (int, error) { |
| 108 | n, err := r.body.Read(b) |
no test coverage detected
searching dependent graphs…