Feature Request: body/2 error when body exceeds MaxLength
- Lingua principale
- Erlang
- Stelle
- 1.4k
- Fork
- 455
- Merge medio
- 2g 18h
- PR unite (30g)
- 1
Descrizione
Currently, when you process a request that exceeds `MaxLength`, the incomplete result silently returns.
This is not always that helpful, because an impartial result might not be parseable. Since no error gets returned by hackney, its not possible to distinguish between malformed responses and excessively large responses that have been cropped.
I am using hackney through `HTTPoison`, and would like to support this behaviour.
Would this use-case fit hackney, or am i better off submitting a PR downstream in `HTTPoison`?
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dal punto di ingresso hackney body/2 e segui come viene gestito MaxLength per le risposte di dimensioni eccessive. Verifica se il comportamento esistente è in grado di distinguere un body troncato da una risposta malformata e chiarisci se la modifica debba essere apportata in hackney o in HTTPoison prima di definire i criteri di completamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- erlang
- 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