Stop Decoding Values
- Dominant language
- C
- Stars
- 345
- Forks
- 94
- PR merge metrics
- No merged PRs in 30d
Description
Currently http-parser converts certain values to `str` on Python3 instead of leaving them as bytes. This allows treating things which are pure ASCII as strings, however in order to do anything more complex than that is requires an encoding dance to go back to bytes by encoding with latin1 again, and then potentially decoding them again with a different encoding. It would be nice if http-parser at least allowed disabling the decoding if not just stopped doing it altogether.
Contributor guide
No contributing guide indexed for this repository
Research direction
No file, test, or entry point is named in the issue. Trace the Python 3 value-conversion path in the C-backed parser and determine whether preserving bytes should be the default or an option; done means the chosen behavior is implemented and verified for the affected values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, python
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100