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
Mark Young
80b01cc567
[ruby/net-http] Provide a 'Changelog' link on rubygems.org/gems/net-http
...
By providing a 'changelog_uri' in the metadata of the gemspec a
'Changelog' link will be shown on https://rubygems.org/gems/net-http
which makes it quick and easy for someone to check on the changes
introduced with a new version.
Details of this functionality can be found on https://guides.rubygems.org/specification-reference/#metadata
https://github.com/ruby/net-http/commit/eeb728fefe
2025-01-06 01:19:55 +00: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
Brandon Weaver
bc6860db23
[ruby/net-http] Update lib/net/http/header.rb
...
https://github.com/ruby/net-http/commit/826e008cfe
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
2024-05-30 09:16:15 +00:00
Brandon Weaver
4839493f3f
[ruby/net-http] Replace Regexp in for headers for perf
...
https://github.com/ruby/net-http/commit/15f1349e4e
2024-05-30 09:16:15 +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
Mark Young
24e0f6fcab
[ruby/net-protocol] Provide a 'Changelog' link on rubygems.org/gems/net-protocol
...
By providing a 'changelog_uri' in the metadata of the gemspec
a 'Changelog' link will be shown on https://rubygems.org/gems/net-protocol
which makes it quick and easy for someone to check on the changes
introduced with a new version.
Details of this functionality can be found on https://guides.rubygems.org/specification-reference/
https://github.com/ruby/net-protocol/commit/46e78a2a0a
2023-12-25 21:12:49 +09:00
Hiroshi SHIBATA
eb4dd7001f
[ruby/net-protocol] Bump up 0.2.2
...
https://github.com/ruby/net-protocol/commit/2d3c4b43a8
2023-11-07 04:06:59 +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
Brian Hawley
9d58f93828
[ruby/net-http] Net::HTTPResponse nil checking
...
Fix nil handling in read_body and stream_check.
Fixes : #70
https://github.com/ruby/net-http/commit/36f916ac18
2023-10-05 07:11:52 +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
ae68a8df58
[ruby/net-http] Update lib/net/http/response.rb
...
@natematykiewicz's suggestion to avoid a string allocation
https://github.com/ruby/net-http/commit/925630f227
Co-authored-by: Nate Matykiewicz <natematykiewicz@gmail.com>
2023-08-16 01:40:12 +00:00
Josh Nichols
ea321a654d
[ruby/net-http] use +'' everywhere
...
https://github.com/ruby/net-http/commit/1077427152
2023-08-16 01:40:11 +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
Josh Nichols
4165ec91d8
[ruby/net-http] update net/http/response to be frozen string literal
...
https://github.com/ruby/net-http/commit/dc3b4a75ca
2023-08-16 01:40:08 +00:00
Josh Nichols
2fbd8dca18
[ruby/net-http] turn on frozen strings for net/http/generic_request
...
https://github.com/ruby/net-http/commit/b92ade088d
2023-08-16 01:40:08 +00:00
Josh Nichols
8d04260acd
[ruby/net-http] turn on frozen strings for net/http/header
...
https://github.com/ruby/net-http/commit/a5203c9f92
2023-08-16 01:40:07 +00:00
Josh Nichols
0300ea5a6c
[ruby/net-http] Improve performance of HTTPHeader#content_type
...
In the existing implementation, `main_type` and `sub_type` would end up
being called multiple times potentially.
Instead of doing that, save the result so it can be re-used.
https://github.com/ruby/net-http/commit/179976f7ea
2023-08-16 01:39:08 +00:00
Nobuyoshi Nakada
cfa6a892d0
Redirect to IO::NULL
for the portability
2023-05-05 18:52:36 +09:00
Hiroshi SHIBATA
bc0a7a641b
[ruby/net-http] typofix
...
https://github.com/ruby/net-http/commit/4d31bde125
2023-03-31 03:47:56 +00:00
NAKAMURA Usaku
eedcd696a5
[ruby/net-http] Fix previous commit
...
https://github.com/ruby/net-http/commit/1b276e2654
2023-03-31 03:22:41 +00:00
NAKAMURA Usaku
d8b8294c28
[ruby/net-http] Limit header length
...
https://github.com/ruby/net-http/commit/c245f7f9c8
2023-03-31 03:22:40 +00:00
Burdette Lamar
2f19c5b7e0
[ruby/net-http] Enhanced RDoc for Net::HTTP
...
(https://github.com/ruby/net-http/pull/130 )
https://github.com/ruby/net-http/commit/698e18cfc1
2023-03-08 19:47:49 +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
755c379d87
[ruby/net-http] Exclude git related files
...
https://github.com/ruby/net-http/commit/2767df580d
2023-03-06 13:26:36 +00:00
Nobuyoshi Nakada
c8c3431b0a
[ruby/net-http] Read in binary mode to get rid of invalid byte sequence
...
https://github.com/ruby/net-http/commit/38de3d17a7
2023-03-06 13:26:34 +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
Hiroshi SHIBATA
9cc0ac22f7
Update lib/net/http/status.rb
2023-02-28 14:29:57 +09:00
Hiroshi SHIBATA
db0a4c8923
Prefer to use File.foreach instead of IO.foreach
2023-02-27 18:49:18 +09: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