1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/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]

https://github.com/ruby/net-http/commit/6233e6b7c1

Co-authored-by: Yui Naruse <naruse@ruby-lang.org>
2022-04-12 00:17:34 +09:00
..
test_buffered_io.rb
test_http.rb [ruby/net-http] Add HTTP#response_body_encoding for setting response body encoding 2022-04-12 00:17:34 +09:00
test_http_request.rb Sync test_http_request.rb after fix to net-http 2021-11-15 09:31:44 -08:00
test_httpheader.rb
test_httpresponse.rb [ruby/net-http] Add HTTP#response_body_encoding for setting response body encoding 2022-04-12 00:17:34 +09:00
test_httpresponses.rb
test_https.rb [ruby/net-http] Do not set SNI hostname if connecting to IP address 2022-02-03 05:10:21 +09:00
test_https_proxy.rb [ruby/net-http] Use omit instead of skip for test-unit 2022-01-11 21:45:34 +09:00
utils.rb