-
SummaryHi, I know that I can set the overall body limit with
but what is the size of the individual chunks received? I couldn't find that in code and would like to know what is the default chunk size and if we can change/limit it? I searched and found this: #1682 Thank you axum version0.7.5 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Are you asking to receive each chunk individually to know its size or to configure something to reject requests that send too large chunks? From the linked question I assume it's the latter? As far as I know there is no way in HTTP to declare maximum chunk size so the framework has to solve it itself and it could be surprising to some clients. However, multiple chunks can be inflight at the same time and hyper might be buffering data in background so if you're trying to cap data usage per request (as the linked question tries to), I'm not sure this would work. I am not sure if the stream guarantees you'll get the data on chunk boundaries. So what are you trying to do with the chunks? |
Beta Was this translation helpful? Give feedback.
When you talk about chunks, you don't meant chunked transfer encoding, you just generally mean part of the received data, right?
In that case it really needs to be configured on
hyper
with something like this.I don't think there's currently an easy way to configure this while using Axum.