162 Commits
Author SHA1 Message Date
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 NicholsandNate Matykiewicz 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 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
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
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)

https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/b4eb8a7932
2023-02-14 20:33:11 +00:00
BurdetteLamar 3e5a77f1ae [ruby/net-http] Remarks on inclusions
https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/14c8405702
2023-02-02 14:03:19 +00:00
BurdetteLamar 8250b46794 [ruby/net-http] Correct doc error
https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/f6506ff889
2023-01-18 21:03:58 +00:00
BurdetteLamar 44b7fd8d4f [ruby/net-http] Enhanced RDoc for HTTPHeader
https://github.com/ruby/net-http/commit/6a282eccdd
2023-01-01 15:02:14 +00:00
BurdetteLamar 8f678d61a5 [ruby/net-http] Adding links to references
https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/768115167a
2022-12-26 15:09:21 +09:00
BurdetteLamar 35aba09e7f [ruby/net-http] Adding links to references
https://github.com/ruby/net-http/commit/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
https://github.com/ruby/net-http/commit/71bae5c0fe
2022-12-21 09:17:19 -05:00
BurdetteLamar 276b84f8ed [ruby/net-http] Adding links to references
https://github.com/ruby/net-http/commit/e4df80f299
2022-12-21 09:17:19 -05:00
BurdetteLamar 86f0128efe [ruby/net-http] Adding links to references
https://github.com/ruby/net-http/commit/df5a554fa8
2022-12-21 09:17:18 -05:00
BurdetteLamar ede7c035d5 [ruby/net-http] Adding links to references
https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/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)

https://github.com/ruby/net-http/commit/a26f62a2e5
2022-11-28 23:33:15 +00:00
Burdette Lamar b55da1cd97 [ruby/net-http] [DOC] Enhanced RDoc for Net::HTTPHeader
https://github.com/ruby/net-http/commit/77c6878970
2022-11-27 00:21:49 +00:00
BurdetteLamar 5ee947314e [ruby/net-http] Enhanced RDoc for Net::HTTPHeader
https://github.com/ruby/net-http/commit/86b0514239
2022-11-23 17:12:35 +00:00
BurdetteLamar 4b32ed6e33 [ruby/net-http] Enhanced RDoc for Net::HTTPHeader
https://github.com/ruby/net-http/commit/ef0ef53b0c
2022-11-23 17:12:34 +00:00
BurdetteLamar 79a9280aa5 [ruby/net-http] Enhanced RDoc for Net::HTTPHeader
https://github.com/ruby/net-http/commit/0af9fb94a9
2022-11-23 17:12:33 +00:00
BurdetteLamar c6dc126641 [ruby/net-http] Enhanced RDoc for Net::HTTPHeader
https://github.com/ruby/net-http/commit/995ff356b4
2022-11-23 17:12:33 +00:00
BurdetteLamar 66be0922b7 [ruby/net-http] Enhanced RDoc for Net::HTTPHeader
https://github.com/ruby/net-http/commit/e924f1205b
2022-11-23 17:12:32 +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
BurdetteLamar e6162728f6 [ruby/net-http] Enhanced RDoc for Net::HTTP 2022-11-19 10:25:12 -05:00
Burdette LamarandPeter Zhu 2047636af8 [ruby/net-http] Update lib/net/http/request.rb
https://github.com/ruby/net-http/commit/e3c9011edb

Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2022-11-19 10:17:54 -05:00