Nobuyoshi Nakada
51118fa2da
[ruby/net-http] Support pretty_print
...
bfc60454f6
2025-06-11 05:04:16 +00:00
Hiroshi SHIBATA
51b70d106a
[ruby/net-http] Don't set content type by default
...
Fixes https://github.com/ruby/net-http/issues/205
002441da1e
2025-06-11 03:35:11 +00:00
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')
}
9f0f5e4b4d
2025-05-17 00:42:12 +00: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
eeb728fefe
2025-01-06 01:19:55 +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.
265bfa929f
2024-11-15 03:15:04 +00:00
Brandon Weaver
bc6860db23
[ruby/net-http] Update lib/net/http/header.rb
...
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
...
15f1349e4e
2024-05-30 09:16:15 +00:00
Zopolis4
4d744a7aa7
[ruby/net-http] Add Net::HTTP.put method
...
6dc01c985b
2024-05-30 09:02:32 +00:00
Brian Hawley
9d58f93828
[ruby/net-http] Net::HTTPResponse nil checking
...
Fix nil handling in read_body and stream_check.
Fixes : #70
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
5a986c13d3
2023-09-19 01:32:18 +00:00
Josh Nichols
ae68a8df58
[ruby/net-http] Update lib/net/http/response.rb
...
@natematykiewicz's suggestion to avoid a string allocation
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
...
1077427152
2023-08-16 01:40:11 +00:00
Josh Nichols
4d21134f3f
[ruby/net-http] freeze rest of lib
...
455a74734a
2023-08-16 01:40:09 +00:00
Josh Nichols
4165ec91d8
[ruby/net-http] update net/http/response to be frozen string literal
...
dc3b4a75ca
2023-08-16 01:40:08 +00:00
Josh Nichols
2fbd8dca18
[ruby/net-http] turn on frozen strings for net/http/generic_request
...
b92ade088d
2023-08-16 01:40:08 +00:00
Josh Nichols
8d04260acd
[ruby/net-http] turn on frozen strings for net/http/header
...
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.
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
...
4d31bde125
2023-03-31 03:47:56 +00:00
NAKAMURA Usaku
eedcd696a5
[ruby/net-http] Fix previous commit
...
1b276e2654
2023-03-31 03:22:41 +00:00
NAKAMURA Usaku
d8b8294c28
[ruby/net-http] Limit header length
...
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 )
698e18cfc1
2023-03-08 19:47:49 +00:00
Nobuyoshi Nakada
755c379d87
[ruby/net-http] Exclude git related files
...
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
...
38de3d17a7
2023-03-06 13:26:34 +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
05f016cdad
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
...
(https://github.com/ruby/net-http/pull/126 )
4700d0660b
2023-02-24 19:09:06 +00:00
Burdette Lamar
3c7d5ccdce
[ruby/net-http] [DOC] Enhanced RDoc for request headers
...
(https://github.com/ruby/net-http/pull/120 )
b4eb8a7932
2023-02-14 20:33:11 +00:00
BurdetteLamar
3e5a77f1ae
[ruby/net-http] Remarks on inclusions
...
dfd060c583
2023-02-02 14:16:59 +00:00
Burdette Lamar
5a9e2f142d
[ruby/net-http] [DOC] Enhanced RDoc for HTTPGenericRequest
...
(https://github.com/ruby/net-http/pull/113 )
14c8405702
2023-02-02 14:03:19 +00:00
BurdetteLamar
8250b46794
[ruby/net-http] Correct doc error
...
dc006d8419
2023-01-28 21:41:15 +00:00
Burdette Lamar
401aa9ddd1
[ruby/net-http] [DOC] Header doc
...
(https://github.com/ruby/net-http/pull/104 )
3308362d9b
2023-01-19 18:58:40 +00:00
Burdette Lamar
308942920f
[ruby/net-http] [DOC] Enhanced RDoc for set_form
...
(https://github.com/ruby/net-http/pull/103 )
f6506ff889
2023-01-18 21:03:58 +00:00
BurdetteLamar
44b7fd8d4f
[ruby/net-http] Enhanced RDoc for HTTPHeader
...
6a282eccdd
2023-01-01 15:02:14 +00:00
BurdetteLamar
8f678d61a5
[ruby/net-http] Adding links to references
...
1c8151aaf3
2022-12-26 22:17:18 +00:00
Burdette Lamar
8c8645f578
[ruby/net-http] [DOC] Adding links to references
...
(https://github.com/ruby/net-http/pull/97 )
768115167a
2022-12-26 15:09:21 +09:00
BurdetteLamar
35aba09e7f
[ruby/net-http] Adding links to references
...
b85530e6b8
2022-12-26 15:09:21 +09:00
Hiroshi SHIBATA
cd6c7613f3
Apply the accidental commits again before Ruby 3.2.
...
Reverts the following commits:
eb8d4d7b51
edb83dc3a2
d40064d184
2022-12-26 12:07:42 +09:00
Hiroshi SHIBATA
eb8d4d7b51
Revert the additional changes from net-http-0.3.2
2022-12-23 19:36:43 +09:00
BurdetteLamar
172dc98c94
[ruby/net-http] Adding links to references
...
71bae5c0fe
2022-12-21 09:17:19 -05:00
BurdetteLamar
276b84f8ed
[ruby/net-http] Adding links to references
...
e4df80f299
2022-12-21 09:17:19 -05:00
BurdetteLamar
86f0128efe
[ruby/net-http] Adding links to references
...
df5a554fa8
2022-12-21 09:17:18 -05:00
BurdetteLamar
ede7c035d5
[ruby/net-http] Adding links to references
...
6dfe6f411a
2022-12-18 15:37:45 +00:00
Burdette Lamar
55f56eb66e
[ruby/net-http] [DOC] New doc for responses classes
...
(https://github.com/ruby/net-http/pull/91 )
d394404402
2022-12-14 22:13:28 +00:00
Burdette Lamar
d2b87456f0
[ruby/net-http] [DOC] Correct formatting in header.rb
...
(https://github.com/ruby/net-http/pull/90 )
d9d829ca53
2022-12-14 21:34:12 +00:00
Burdette Lamar
63f682ba11
[ruby/net-http] [DOC] Enhanced RDoc for HTTPHeader
...
(https://github.com/ruby/net-http/pull/88 )
46e966be10
2022-12-12 19:34:21 +00:00
Burdette Lamar
e58c4f97fa
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
...
(https://github.com/ruby/net-http/pull/84 )
660046386f
2022-12-04 20:22:31 +00:00
Burdette Lamar
171e94bd95
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPHeader
...
(https://github.com/ruby/net-http/pull/83 )
1ea5004098
2022-12-01 23:17:47 +00:00
Burdette Lamar
ee49fe5d34
[ruby/net-http] Enhanced RDoc for header Range
...
(https://github.com/ruby/net-http/pull/82 )
a26f62a2e5
2022-11-28 23:33:15 +00:00
Burdette Lamar
b55da1cd97
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPHeader
...
77c6878970
2022-11-27 00:21:49 +00:00