ruby/lib/net/http
Jeremy Evans ebb4378237 [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]

6233e6b7c1

Co-authored-by: Yui Naruse <naruse@ruby-lang.org>
2022-04-12 00:17:34 +09:00
..
backward.rb [ruby/net-http] Warn deprecated old constants 2021-11-04 20:51:51 +09:00
exceptions.rb
generic_request.rb [ruby/net-http] Send Accept-Encoding header on HEAD method 2021-11-11 17:34:00 +09:00
header.rb Improve documentation for Net::HTTPHeader#set_form [ci skip] 2020-05-27 13:13:46 -07:00
net-http.gemspec Removed dependency of net-protocol. There is no plan to remove from stdlib 2022-02-21 17:10:56 +09:00
proxy_delta.rb
request.rb
requests.rb
response.rb [ruby/net-http] Add HTTP#response_body_encoding for setting response body encoding 2022-04-12 00:17:34 +09:00
responses.rb
status.rb Remove uselsess shebang 2019-10-09 12:41:41 +09:00