Description 📝
Adding a flag to frag buffer indicating raw/deflated seems to be an easy solution that costs nothing and might even be non breaking if we add it to the end of the buffer.
This will abstract raw handling entirely, simplifying usage.
For more involved cases the consumer will still be able to control whether the buffer is raw or not and a util isRawBuffer can be provided as well, throwing or retuning undefined for backward compatibility.
Suggested solution 💡
No response
Alternative ⛕
No response
Additional context ☝️
No response
Validations ✅
Description 📝
Adding a flag to frag buffer indicating raw/deflated seems to be an easy solution that costs nothing and might even be non breaking if we add it to the end of the buffer.
This will abstract
rawhandling entirely, simplifying usage.For more involved cases the consumer will still be able to control whether the buffer is raw or not and a util
isRawBuffercan be provided as well, throwing or retuning undefined for backward compatibility.Suggested solution 💡
No response
Alternative ⛕
No response
Additional context ☝️
No response
Validations ✅