Lil chonk encoder; such a good lad https://github.com/http-rs/async-h1/blob/53330af58154d57b5a740c440e53107c7b9873f9/src/server/encode.rs#L199-L253 …
-
-
Show this thread
-
The way chompks in HTTP chonk encoding are encoded is: 1. length of the chunk 2. \r\n 3. {data} 4. \r\n 5. if this was the last chunk, one final \r\n Most of the logic revolves around calculating the right offsets for each of these.
Show this thread -
Okay, bug hunting over. Had to pull up a hex editor, but we even have tests now! Oh and also verified in every browser I could try.
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.