Is there a way to use AsyncReadBody and indicate the total content length? #2074
-
In some of the responses returned from my axum-http server application I have a virtual data source implementing Is there a way to use AsyncReadBody without chunked transfer encoding and including the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Nothing built in (though maybe there should be). Your best option is to implement your own |
Beta Was this translation helpful? Give feedback.
Nothing built in (though maybe there should be). Your best option is to implement your own
http_body::Body
type that wraps your async read body and overridesBody::size_hint