feat(webconnectivity@v0.5): stream the response body (#959)
Reference issue: https://github.com/ooni/probe/issues/2295
This commit is contained in:
parent
019aa4cbca
commit
d289b80386
5 changed files with 85 additions and 3 deletions
|
|
@ -10,6 +10,9 @@ import (
|
|||
"io"
|
||||
)
|
||||
|
||||
// TODO(bassosimone): consider integrating StreamAllContext from
|
||||
// internal/experiment/webconnectivity/iox.go
|
||||
|
||||
// ReadAllContext is like io.ReadAll but reads r in a
|
||||
// background goroutine. This function will return
|
||||
// earlier if the context is cancelled. In which case
|
||||
|
|
|
|||
Loading…
Reference in a new issue