Skip to content

How to determine active in-flight request/response count with streaming response bodies? #2196

Answered by davidpdrsn
geekflyer asked this question in Q&A
Discussion options

You must be logged in to vote

You can make your own implementation of the Body trait that wraps another body. The stream is over when poll_data returns Poll::Ready(None).

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@geekflyer
Comment options

@davidpdrsn
Comment options

@geekflyer
Comment options

@geekflyer
Comment options

Answer selected by davidpdrsn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants