diff options
author | Jeremy Evans <[email protected]> | 2022-04-11 08:17:19 -0700 |
---|---|---|
committer | git <[email protected]> | 2022-04-12 00:17:34 +0900 |
commit | ebb4378237e572ce2e888136a613c7c051439f95 (patch) | |
tree | 13f22663021500a3aa223fcd175db1a05caf246e /doc/implicit_conversion.rdoc | |
parent | 4bd38e8120f2fdfdd47a34211720e048502377f1 (diff) |
[ruby/net-http] Add HTTP#response_body_encoding for setting response body encoding
This allows for the ability to opt-in to a method to set the
encoding of response bodies. By setting the accessor to a String
or Encoding instance, it will use the specified encoding.
Setting the value of true will try to detect the encoding of the
response body, either using the Content-Type header (assuming it
specifies charset) or by scanning for a <meta> tag in the document
that specifies the encoding. The default is false in which case
no forcing of encoding will be done (same as before the patch).
Implements [Feature #2567]
Implements [Feature #15517]
https://github.com/ruby/net-http/commit/6233e6b7c1
Co-authored-by: Yui Naruse <[email protected]>
Diffstat (limited to 'doc/implicit_conversion.rdoc')
0 files changed, 0 insertions, 0 deletions