chansen / p5-http-tiny

Tiny HTTP Client
https://metacpan.org/dist/HTTP-Tiny
53 stars 52 forks source link

Please document that 'content' is unencoded bytes #148

Closed leonerd closed 2 years ago

leonerd commented 2 years ago

From reading the source it appears that HTTP::Tiny expects to receive plain bytes for request content, and will return plain bytes in the response content. All encoding becomes the user's problem.

This is all fine - especially for a Tiny module - but it would be useful if the documentation pointed out this fact, so users were clear on the matter. A search through the docs for the words "encode", "encoding" or "bytes" did not yield anything notworthy.