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
BurdetteLamar
5ee947314e
[ruby/net-http] Enhanced RDoc for Net::HTTPHeader
...
86b0514239
2022-11-23 17:12:35 +00:00
BurdetteLamar
4b32ed6e33
[ruby/net-http] Enhanced RDoc for Net::HTTPHeader
...
ef0ef53b0c
2022-11-23 17:12:34 +00:00
BurdetteLamar
79a9280aa5
[ruby/net-http] Enhanced RDoc for Net::HTTPHeader
...
0af9fb94a9
2022-11-23 17:12:33 +00:00
BurdetteLamar
c6dc126641
[ruby/net-http] Enhanced RDoc for Net::HTTPHeader
...
995ff356b4
2022-11-23 17:12:33 +00:00
BurdetteLamar
66be0922b7
[ruby/net-http] Enhanced RDoc for Net::HTTPHeader
...
e924f1205b
2022-11-23 17:12:32 +00:00
BurdetteLamar
909ea6b60d
[ruby/net-http] About the Examples moved to separate file
...
0512b5bfc9
2022-11-19 15:33:28 +00:00
BurdetteLamar
e6162728f6
[ruby/net-http] Enhanced RDoc for Net::HTTP
2022-11-19 10:25:12 -05:00
Burdette Lamar
2047636af8
[ruby/net-http] Update lib/net/http/request.rb
...
e3c9011edb
Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-11-19 10:17:54 -05:00