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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.