ethanent / phin

Node HTTP client
MIT License
576 stars 33 forks source link

Fix response body type for parse: none #64

Closed jdforsythe closed 3 years ago

jdforsythe commented 3 years ago

Fixes # 62

Fix response body type for parse: none to be Buffer Add parse: string to explicitly ask for body as a string Add types for string parsing Add tests for Buffer and string bodies Regenerate documentation

jdforsythe commented 3 years ago

@ethanent This should not break any existing usages because the body type when using parse: 'none' was already coming back as a Buffer.

ethanent commented 3 years ago

Thank you very much.