feat(webconnectivity@v0.5): stream the response body (#959)

Reference issue: https://github.com/ooni/probe/issues/2295
This commit is contained in:
Simone Basso
2022-09-13 21:54:40 +02:00
committed by GitHub
parent 019aa4cbca
commit d289b80386
5 changed files with 85 additions and 3 deletions
+3
View File
@@ -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