benoitc / benoitc/http-parser

Stop Decoding Values

Aperta
#49 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
improvement to investigate
Lingua principale
C
Stelle
345
Fork
94
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
c, python
Ambito
api, backend
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.