-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
For example a HTTP transfer done in chunks, using flowrate inside a http.RoundTripper:
func (t *limitTransport) RoundTrip(r *http.Request) (res *http.Response, err error) {
body := flowrate.NewReader(r.Body, -1)
r.Body = body
// track body.Monitor.Status() here
return
}(full source code can be seen here)
I'd like to keep track of the overall status of the transfer, however I find that Monitor gets flagged as not active at the end of the first roundtrip and so cannot be reused.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels