Commit graph

153 commits

Author SHA1 Message Date
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
BurdetteLamar
dbb902fc91 [ruby/net-http] Enhanced RDoc for Net::HTTP
4444e8cea4
2022-11-19 10:17:54 -05:00
BurdetteLamar
951eabdcf2 [ruby/net-http] Enhanced RDoc for Net::HTTP
6b30c5310b
2022-11-19 10:17:53 -05:00
Hiroshi SHIBATA
1cda414622 Raise ArgumentError with empty host url again.
Fixup dd5118f852

Co-authored-by: Koichi Sasada <ko1@atdot.net>
2022-10-13 12:32:02 +09:00
Shishir Joshi
c310691dd8 [ruby/net-http] Make Net::HTTPHeader#content_range return nil on non-byte units
* Returning nil from the `content_range` method instead of raising an
  error when the unit in the content-range header is not "bytes".

Fix https://bugs.ruby-lang.org/issues/11450

0b5030dd86

Co-Authored-By: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-06-16 23:35:27 +09:00
Nobuyoshi Nakada
2223eb082a
Revert "HTTPHeader.content_range throws error on non-byte units"
This reverts commit 63546bfc15.
2022-06-16 22:10:59 +09:00
Shishir Joshi
63546bfc15
HTTPHeader.content_range throws error on non-byte units
* Added a nil check in Net::HTTPHeader#initialize_http_header for keys in the header that do not have any value
* Returning nil from the content_range method instead of raising an error when the unit in the content-range header is not bytes
* Modified initialize_http_header to match trunk

fix [Bug #11450]
fix https://github.com/ruby/ruby/pull/1018
2022-06-16 20:16:47 +09:00
Nobuyoshi Nakada
4cf155e007 [ruby/net-http] [DOC] Get rid of a RDoc bug
RDoc overrides class name by the assigned name unexpectedly when
assigned using a qualified class path.

a7bded0407
2022-05-23 18:23:22 +09:00
Nobuyoshi Nakada
8fa9e168be [ruby/net-http] Make the recommended name formal
`HTTPServerException` is the name deprecated since years ago.

b3028fef5a
2022-05-21 00:41:54 +09:00
Jeremy Evans
90ccc5674a [ruby/net-http] Add ignore_eof access to HTTP and HTTPResponse
The ignore_eof setting on HTTPResponse makes it so an EOFError is
raised when reading bodies with a defined Content-Length, if the
body read was truncated due to the socket be closed.

The ignore_eof setting on HTTP sets the values used in responses
that are created by the object.

For backwards compatibility, the default is for both settings is
true.  However, unless you are specifically tested for and handling
truncated responses, it's a good idea to set ignore_eof to false so
that errors are raised for truncated responses, instead of those
errors silently being ignored.

Fixes [Bug #14972]

4d47e34995
2022-04-20 10:22:06 +09:00