summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
AgeCommit message (Collapse)Author
2024-01-06[ruby/net-http] Tweak to Net::HTTP What's HereBurdetteLamar
https://github.com/ruby/net-http/commit/3bf641ca63
2024-01-05[ruby/net-http] Don't invoke response block more than once due to retryJeremy Evans
If a socket error occurs while performing a streaming download via the response block provided to transport_request, avoid calling the response block again as this would result in duplicate data received by the client. Fixes https://github.com/ruby/net-http/pull/86 Fixes https://github.com/ruby/net-http/pull/87 Fixes [Bug #11526] https://github.com/ruby/net-http/commit/114d01b092 Co-authored-by: Jeremy Stanley <jeremy@instructure.com>
2024-01-05[ruby/net-http] Bump version to 0.4.1Hiroshi SHIBATA
https://github.com/ruby/net-http/commit/21e226c0bc
2023-11-06[ruby/net-http] Bump up 0.4.0Hiroshi SHIBATA
https://github.com/ruby/net-http/commit/4be99c204c
2023-11-06[ruby/net-http] Removed obsolated Revision constantHiroshi SHIBATA
https://github.com/ruby/net-http/commit/c1c5638014
2023-10-30[ruby/net-http] fix no_proxy behaviourChristian van Rensen
https://github.com/ruby/net-http/commit/f4951dc42a
2023-09-19[ruby/net-http] No longer neccessary to call `String#freeze` on string literals.0x1eef
See #144 https://github.com/ruby/net-http/commit/5a986c13d3
2023-08-16[ruby/net-http] Update lib/net/http.rbJosh Nichols
@natematykiewicz's suggestion to avoid another string allocation https://github.com/ruby/net-http/commit/4a22c42338 Co-authored-by: Nate Matykiewicz <natematykiewicz@gmail.com>
2023-08-16[ruby/net-http] Fix on 2.7Josh Nichols
https://github.com/ruby/net-http/commit/5194fd541e
2023-08-16[ruby/net-http] freeze rest of libJosh Nichols
https://github.com/ruby/net-http/commit/455a74734a
2023-03-07[ruby/net-http] Re-applyHiroshi SHIBATA
https://github.com/ruby/net-http/commit/d22ca54904de after testing https://github.com/ruby/net-http/commit/7ac7401a9c
2023-03-06[ruby/net-http] Test building packagesNobuyoshi Nakada
Also revert commit https://github.com/ruby/net-http/commit/d22ca54904de "Replaced non-ascii charactor. It fails version detection at `net-http.gemspec`." https://github.com/ruby/net-http/commit/fbeb247d93
2023-03-06Replaced non-ascii charactor. It fails version detection at `net-http.gemspec`.Hiroshi SHIBATA
># Returns the X509 certificate chain for the session<E2><80><99>s socket peer.
2023-03-05[ruby/net-http] [DOC] What's Here for Net:HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/128) https://github.com/ruby/net-http/commit/39e70f0f9b
2023-02-26[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/127) https://github.com/ruby/net-http/commit/07b2b88ef5
2023-02-24[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/126) https://github.com/ruby/net-http/commit/4700d0660b
2023-02-23[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/125) https://github.com/ruby/net-http/commit/2ea20380fc
2023-02-22[ruby/net-http] [DOC] Enhanced RDoc for Net:HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/124) https://github.com/ruby/net-http/commit/aaf26b21d6
2023-02-20[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/123) https://github.com/ruby/net-http/commit/220ff3f741
2023-02-16[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/122) https://github.com/ruby/net-http/commit/06f79cda87
2023-02-15[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP#getBurdette Lamar
(https://github.com/ruby/net-http/pull/121) https://github.com/ruby/net-http/commit/51b9af1eed
2023-02-13[ruby/net-http] Enhanced RDoc for CompressionBurdetteLamar
https://github.com/ruby/net-http/commit/cff88acd70
2023-02-07[ruby/net-http] Enhanced RDoc for Net::HTTPBurdetteLamar
https://github.com/ruby/net-http/commit/e65a3d9f11
2023-02-07[ruby/net-http] [DOC] Reorganize doc for proxy serverBurdette Lamar
(https://github.com/ruby/net-http/pull/117) https://github.com/ruby/net-http/commit/f8b6b76cba
2023-02-04* remove trailing spaces. [ci skip]git
2023-02-04[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/116) https://github.com/ruby/net-http/commit/22c0d34002
2023-02-03[ruby/net-http] [DOC] Enhanced RDoc for write_timeoutBurdette Lamar
(https://github.com/ruby/net-http/pull/115) https://github.com/ruby/net-http/commit/6da39b0461
2023-01-31[ruby/net-http] Redirection revisionBurdetteLamar
https://github.com/ruby/net-http/commit/9a4e2d3a2a
2023-01-31[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/110) https://github.com/ruby/net-http/commit/b098caa5e4
2023-01-31Manually merged https://github.com/ruby/net-http/pull/106Hiroshi SHIBATA
Co-authored-by: Peter Zhu <peter@peterzhu.ca> Co-authored-by: BurdetteLamar <burdettelamar@yahoo.com>
2022-12-19[ruby/net-http] Bump version to 0.3.2Hiroshi SHIBATA
https://github.com/ruby/net-http/commit/b8bdb7248e
2022-12-15[ruby/net-http] Enhanced RDoc for Net::HTTPBurdetteLamar
https://github.com/ruby/net-http/commit/da626e4e42
2022-12-14[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/89) https://github.com/ruby/net-http/commit/86b84eb307
2022-12-11[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPBurdette Lamar
(https://github.com/ruby/net-http/pull/85) https://github.com/ruby/net-http/commit/9d9040fb79
2022-12-06[ruby/net-http] [DOC] Fix call-seq for Net::HTTP.startPeter Zhu
The lack of a newline between the call-seq and the documentation was causing the documentation to be parsed as a call-seq. https://github.com/ruby/net-http/commit/1a212e2065
2022-12-05[ruby/net-http] Bump version to 0.3.1Hiroshi SHIBATA
https://github.com/ruby/net-http/commit/09a9ea163a
2022-11-19[ruby/net-http] About the Examples moved to separate fileBurdetteLamar
https://github.com/ruby/net-http/commit/0512b5bfc9
2022-11-19[ruby/net-http] Enhanced RDoc for Net::HTTPBurdetteLamar
https://github.com/ruby/net-http/commit/4444e8cea4
2022-11-19[ruby/net-http] Enhanced RDoc for Net::HTTPBurdetteLamar
https://github.com/ruby/net-http/commit/6b30c5310b
2022-11-11[ruby/net-http] Update lib/net/http.rbBurdette Lamar
https://github.com/ruby/net-http/commit/16d042fad6 Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-11-11[ruby/net-http] Prettify class hierarchies in Net::HTTPBurdetteLamar
https://github.com/ruby/net-http/commit/4a5732e210
2022-10-24[ruby/net-http] Bump version to 0.3.0 Hiroshi SHIBATA
2022-10-21[ruby/net-http] Revert "Replace Timeout.timeout in Net:HTTP#connect"Hiroshi SHIBATA
This reverts commit https://github.com/ruby/net-http/commit/753cae3bbccc. https://github.com/ruby/net-http/commit/98caa38204
2022-09-28[ruby/net-http] Remove ENVIRONMENT_VARIABLE_IS_MULTIUSER_SAFEJeremy Evans
This list is out of date. At least OpenBSD since 2013 does not allow one user to read the environment variables of a process run by another user. While we could try to keep the list updated, I think it's a bad idea to not use the user/password from the environment, even if another user on the system could read it. If http_proxy exists in the environment, and other users can read it, it doesn't make it more secure for Ruby to ignore it. You could argue that it encourages poor security practices, but net/http should provide mechanism, not policy. Fixes [Bug #18908] https://github.com/ruby/net-http/commit/1e4585153d
2022-05-09[ruby/net-http] Bump version to 0.2.2Hiroshi SHIBATA
https://github.com/ruby/net-http/commit/992d07cb41
2022-04-28[ruby/net-http] Bump version to 0.2.1.pre1Charles Oliver Nutter
https://github.com/ruby/net-http/commit/0017cc64c0
2022-04-20[ruby/net-http] Feature detect to make net/http usable with JRubyKarol Bucek
Handle missing session_new_cb= and do not call session_cache_mode=, as JRuby SSL does not support these methods. https://github.com/ruby/net-http/commit/3237ef4d8c
2022-04-20[ruby/net-http] Add ignore_eof access to HTTP and HTTPResponseJeremy Evans
The ignore_eof setting on HTTPResponse makes it so an EOFError is raised when reading bodies with a defined Content-Length, if the body read was truncated due to the socket be closed. The ignore_eof setting on HTTP sets the values used in responses that are created by the object. For backwards compatibility, the default is for both settings is true. However, unless you are specifically tested for and handling truncated responses, it's a good idea to set ignore_eof to false so that errors are raised for truncated responses, instead of those errors silently being ignored. Fixes [Bug #14972] https://github.com/ruby/net-http/commit/4d47e34995
2022-04-12[ruby/net-http] Add HTTP#response_body_encoding for setting response body ↵Jeremy Evans
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-02-03[ruby/net-http] Do not set SNI hostname if connecting to IP addressJeremy Evans
RFC 6066, section 3, explicitly disallows the use of an IP address as an SNI server name. So check if the connection is being made to an IP address using the resolv regexps, and do not set an SNI hostname in that case. Recent changes to LibreSSL make it more strictly follow RFC 6066, resulting an s.hostname= raising an error if passed an IP address. When such verions of LibreSSL are used, this change not only fixes the net/http tests, it also fixes tests for webrick and open-uri, which both make SSL connections to 127.0.0.1 using net/http in their tests. Avoid warning in the openssl extension by unsetting @ssl_context.verify_hostname if connecting to an IP address. Make changes so that the post_connection_check still happens when connecting to an IP address, which is necessary to keep checking that the certificate returned includes the IP address, which one of the tests depends on. Revert the previous change that modified the regexp used for checking the error message. https://github.com/ruby/net-http/commit/fa68e64bee