How to get request size on server side from inside tower layer? #1294
Unanswered
gmossessian
asked this question in
Q&A
Replies: 1 comment
-
Yeah, I don't think there is a way to peek at the header before its consumed by prost. You could always write a http body wrapper that tracks the bytes and reports them as it gets read from the buffer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to read the size in bytes of a
tonic::codegen::http::Request<T>
, or is the size only available once the innerprost::Message
is consumed?Beta Was this translation helpful? Give feedback.
All reactions