benoitc / benoitc/http-parser

Stop Decoding Values

Open
#49 1 comment 0 reactions 0 assignees View on GitHub
improvement to investigate
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.