Patron v0.8.0 Release Notes

Release Date: 2016-09-05 // over 7 years ago
    • Add Response#inspectable_body, Response#decoded_body. decoded_body will atempt to decode the HTTP response into your internal encoding, using the charset header that the server has provided. Note that this operation may fail - if the server said that the body is in a certain encoding, but this is then overridden with, say, meta elements in the HTML Patron is not going to parse the HTML to figure out how to decode.