379 Commits

Author SHA1 Message Date
Daisuke Aritomo
aa0f689bf4 [ruby/net-http] Freeze some constants to improve Ractor compatibility
Freeze `Net::HTTP::SSL_IVNAMES`, `Net::HTTPResponse::CODE_CLASS_TO_OBJ`
and `Net::HTTPResponse::CODE_TO_OBJ` to improve Ractor compatibility.

This change allows the following code to work:

    Ractor.new {
      uri = URI.parse('http://example.com')
      http = Net::HTTP.new(uri.host, uri.port)
      http.open_timeout = nil
      http.read_timeout = nil
      http.get('/index.html')
    }

https://github.com/ruby/net-http/commit/9f0f5e4b4d
2025-05-17 00:42:12 +00:00
Hiroshi SHIBATA
4d9a1d5b6f Handle to look up CGI::EscapeExt instead of using LoadError. cgi/escape is provided snce Ruby 2.3 2025-05-13 14:37:24 +09:00
Hiroshi SHIBATA
a61f51f66d Use cgi/escape instead of cgi/util 2025-05-09 14:27:28 +09:00
Stan Lo
5ff1c479d6 Sync net-http commits
9bcf818fd0
5e34e74261
2024-12-16 13:00:49 -08:00
Hiroshi SHIBATA
2b895a7ad5 [ruby/net-http] Bump up 0.6.0
https://github.com/ruby/net-http/commit/6475fa68ba
2024-12-02 08:42:13 +00:00
Hiroshi SHIBATA
716ea630db [ruby/net-http] Need to restore under the Net namespace
https://github.com/ruby/net-http/commit/4650f86981
2024-11-19 09:19:16 +00:00
Hiroshi SHIBATA
b23c5063e8 [ruby/net-http] Restore HTTPSession constant for backward compatibility
https://github.com/ruby/net-http/commit/37f17d29e0
2024-11-19 03:39:17 +00:00
Nobuyoshi Nakada
8e98fbdd19 [ruby/net-http] Remove deprecated constants
These constants, isolated in net/http/backward.rb, have not only been
deprecated since 2001, but have also had a warning since 2021.

https://github.com/ruby/net-http/commit/265bfa929f
2024-11-15 03:15:04 +00:00
Hiroshi SHIBATA
72bc698419 [ruby/net-http] Bump up v0.5.0
https://github.com/ruby/net-http/commit/28a4bf9295
2024-11-07 02:39:23 +00:00
Evgeni Golov
bc1b4235fb [ruby/net-http] implement talking SSL to the proxy too
https://bugs.ruby-lang.org/issues/16482

https://github.com/ruby/net-http/commit/ae2d83f88b
2024-07-11 01:56:08 +00:00
fatkodima
70bdc0f777 [ruby/net-http] Add ability to configure default settings for new connections
https://github.com/ruby/net-http/commit/fed3dcd0c2
2024-07-11 01:51:03 +00:00
MSP-Greg
d605fb54cf [ruby/net-http] net/http.rb - derive SSL_IVNAMES from SSL_ATTRIBUTES
https://github.com/ruby/net-http/commit/7191bb923b
2024-07-11 01:10:08 +00:00
Zopolis4
4d744a7aa7 [ruby/net-http] Add Net::HTTP.put method
https://github.com/ruby/net-http/commit/6dc01c985b
2024-05-30 09:02:32 +00:00
BurdetteLamar
76afbda5b5 [ruby/net-http] Tweak to Net::HTTP What's Here
https://github.com/ruby/net-http/commit/3bf641ca63
2024-01-06 18:26:38 +00:00
Jeremy Evans
4d03140009 [ruby/net-http] Don't invoke response block more than once due to retry
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 16:51:37 +00:00
Hiroshi SHIBATA
75a8b48fba [ruby/net-http] Bump version to 0.4.1
https://github.com/ruby/net-http/commit/21e226c0bc
2024-01-05 08:25:03 +00:00
Hiroshi SHIBATA
e3a19b8a43 [ruby/net-http] Bump up 0.4.0
https://github.com/ruby/net-http/commit/4be99c204c
2023-11-06 08:23:09 +00:00
Hiroshi SHIBATA
66d266244c [ruby/net-http] Removed obsolated Revision constant
https://github.com/ruby/net-http/commit/c1c5638014
2023-11-06 08:22:39 +00:00
Christian van Rensen
14fa5e39d7 [ruby/net-http] fix no_proxy behaviour
https://github.com/ruby/net-http/commit/f4951dc42a
2023-10-30 09:27:06 +00:00
0x1eef
e77c766b7a [ruby/net-http] No longer neccessary to call String#freeze on string literals.
See #144

https://github.com/ruby/net-http/commit/5a986c13d3
2023-09-19 01:32:18 +00:00
Josh Nichols
af67ced3b0 [ruby/net-http] Update lib/net/http.rb
@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 01:40:13 +00:00
Josh Nichols
70da92cdf7 [ruby/net-http] Fix on 2.7
https://github.com/ruby/net-http/commit/5194fd541e
2023-08-16 01:40:10 +00:00
Josh Nichols
4d21134f3f [ruby/net-http] freeze rest of lib
https://github.com/ruby/net-http/commit/455a74734a
2023-08-16 01:40:09 +00:00
Hiroshi SHIBATA
030f39822a [ruby/net-http] Re-apply
https://github.com/ruby/net-http/commit/d22ca54904de after
testing

https://github.com/ruby/net-http/commit/7ac7401a9c
2023-03-07 01:35:20 +00:00
Nobuyoshi Nakada
fd0a5659ca [ruby/net-http] Test building packages
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-06 13:26:34 +00:00
Hiroshi SHIBATA
62e2b61607
Replaced non-ascii charactor. It fails version detection at net-http.gemspec.
>#   Returns the X509 certificate chain for the session<E2><80><99>s socket peer.
2023-03-06 14:50:53 +09:00
Burdette Lamar
1b4c1492c1 [ruby/net-http] [DOC] What's Here for Net:HTTP
(https://github.com/ruby/net-http/pull/128)

https://github.com/ruby/net-http/commit/39e70f0f9b
2023-03-05 19:06:37 +00:00
Burdette Lamar
6e6992e5db [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/127)

https://github.com/ruby/net-http/commit/07b2b88ef5
2023-02-26 13:37:15 +00:00
Burdette Lamar
05f016cdad [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/126)

https://github.com/ruby/net-http/commit/4700d0660b
2023-02-24 19:09:06 +00:00
Burdette Lamar
7c47c2617a [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/125)

https://github.com/ruby/net-http/commit/2ea20380fc
2023-02-23 16:51:58 +00:00
Burdette Lamar
4edb2a29f6 [ruby/net-http] [DOC] Enhanced RDoc for Net:HTTP
(https://github.com/ruby/net-http/pull/124)

https://github.com/ruby/net-http/commit/aaf26b21d6
2023-02-22 13:58:36 +00:00
Burdette Lamar
899fad907c [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/123)

https://github.com/ruby/net-http/commit/220ff3f741
2023-02-20 21:57:16 +00:00
Burdette Lamar
a49bc73e1f [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/122)

https://github.com/ruby/net-http/commit/06f79cda87
2023-02-16 21:52:10 +00:00
Burdette Lamar
847a0df058 [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP#get
(https://github.com/ruby/net-http/pull/121)

https://github.com/ruby/net-http/commit/51b9af1eed
2023-02-15 15:00:34 +00:00
BurdetteLamar
bc6e587e86 [ruby/net-http] Enhanced RDoc for Compression
https://github.com/ruby/net-http/commit/cff88acd70
2023-02-13 13:04:33 +00:00
BurdetteLamar
2c7fe9c0a6 [ruby/net-http] Enhanced RDoc for Net::HTTP
https://github.com/ruby/net-http/commit/e65a3d9f11
2023-02-07 16:01:04 +00:00
Burdette Lamar
a641f6422c [ruby/net-http] [DOC] Reorganize doc for proxy server
(https://github.com/ruby/net-http/pull/117)

https://github.com/ruby/net-http/commit/f8b6b76cba
2023-02-07 14:53:38 +00:00
git
06195e7603 * remove trailing spaces. [ci skip] 2023-02-04 18:06:18 +00:00
Burdette Lamar
6db79aefec [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/116)

https://github.com/ruby/net-http/commit/22c0d34002
2023-02-04 18:06:06 +00:00
Burdette Lamar
faa4c2279a [ruby/net-http] [DOC] Enhanced RDoc for write_timeout
(https://github.com/ruby/net-http/pull/115)

https://github.com/ruby/net-http/commit/6da39b0461
2023-02-03 14:33:53 +00:00
BurdetteLamar
3ebc80314c [ruby/net-http] Redirection revision
https://github.com/ruby/net-http/commit/9a4e2d3a2a
2023-01-31 21:01:04 +00:00
Burdette Lamar
d92289f633 [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/110)

https://github.com/ruby/net-http/commit/b098caa5e4
2023-01-31 14:18:50 +00:00
Hiroshi SHIBATA
fe7d4eed25
Manually merged https://github.com/ruby/net-http/pull/106
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
Co-authored-by: BurdetteLamar <burdettelamar@yahoo.com>
2023-01-31 13:14:05 +09:00
Hiroshi SHIBATA
08d21b4bd2
[ruby/net-http] Bump version to 0.3.2
https://github.com/ruby/net-http/commit/b8bdb7248e
2022-12-19 10:50:21 +09:00
BurdetteLamar
d5eafaed81 [ruby/net-http] Enhanced RDoc for Net::HTTP
https://github.com/ruby/net-http/commit/da626e4e42
2022-12-15 21:33:19 +00:00
Burdette Lamar
3e5f8b2af3 [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/89)

https://github.com/ruby/net-http/commit/86b84eb307
2022-12-14 13:55:06 +00:00
Burdette Lamar
f1cdc129d4 [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
(https://github.com/ruby/net-http/pull/85)

https://github.com/ruby/net-http/commit/9d9040fb79
2022-12-11 22:26:18 +00:00
Peter Zhu
9d4483f24d [ruby/net-http] [DOC] Fix call-seq for Net::HTTP.start
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-06 14:27:15 +00:00
Hiroshi SHIBATA
9e114338b9 [ruby/net-http] Bump version to 0.3.1
https://github.com/ruby/net-http/commit/09a9ea163a
2022-12-05 06:42:56 +00:00
BurdetteLamar
909ea6b60d [ruby/net-http] About the Examples moved to separate file
https://github.com/ruby/net-http/commit/0512b5bfc9
2022-11-19 15:33:28 +00:00