http 5.3.1 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +241 -41
- data/LICENSE.txt +1 -1
- data/README.md +110 -13
- data/UPGRADING.md +491 -0
- data/http.gemspec +32 -29
- data/lib/http/base64.rb +11 -1
- data/lib/http/chainable/helpers.rb +62 -0
- data/lib/http/chainable/verbs.rb +136 -0
- data/lib/http/chainable.rb +232 -136
- data/lib/http/client.rb +158 -127
- data/lib/http/connection/internals.rb +141 -0
- data/lib/http/connection.rb +126 -97
- data/lib/http/content_type.rb +61 -6
- data/lib/http/errors.rb +25 -1
- data/lib/http/feature.rb +65 -5
- data/lib/http/features/auto_deflate.rb +124 -17
- data/lib/http/features/auto_inflate.rb +38 -15
- data/lib/http/features/caching/entry.rb +178 -0
- data/lib/http/features/caching/in_memory_store.rb +63 -0
- data/lib/http/features/caching.rb +216 -0
- data/lib/http/features/digest_auth.rb +234 -0
- data/lib/http/features/instrumentation.rb +97 -17
- data/lib/http/features/logging.rb +183 -5
- data/lib/http/features/normalize_uri.rb +17 -0
- data/lib/http/features/raise_error.rb +18 -3
- data/lib/http/form_data/composite_io.rb +106 -0
- data/lib/http/form_data/file.rb +95 -0
- data/lib/http/form_data/multipart/param.rb +62 -0
- data/lib/http/form_data/multipart.rb +106 -0
- data/lib/http/form_data/part.rb +52 -0
- data/lib/http/form_data/readable.rb +58 -0
- data/lib/http/form_data/urlencoded.rb +175 -0
- data/lib/http/form_data/version.rb +8 -0
- data/lib/http/form_data.rb +102 -0
- data/lib/http/headers/known.rb +3 -0
- data/lib/http/headers/normalizer.rb +17 -36
- data/lib/http/headers.rb +172 -65
- data/lib/http/mime_type/adapter.rb +24 -9
- data/lib/http/mime_type/json.rb +19 -4
- data/lib/http/mime_type.rb +21 -3
- data/lib/http/options/definitions.rb +189 -0
- data/lib/http/options.rb +172 -125
- data/lib/http/redirector.rb +80 -75
- data/lib/http/request/body.rb +87 -6
- data/lib/http/request/builder.rb +184 -0
- data/lib/http/request/proxy.rb +83 -0
- data/lib/http/request/writer.rb +76 -16
- data/lib/http/request.rb +214 -98
- data/lib/http/response/body.rb +103 -18
- data/lib/http/response/inflater.rb +35 -7
- data/lib/http/response/parser.rb +98 -4
- data/lib/http/response/status/reasons.rb +2 -4
- data/lib/http/response/status.rb +141 -31
- data/lib/http/response.rb +219 -61
- data/lib/http/retriable/delay_calculator.rb +38 -11
- data/lib/http/retriable/errors.rb +21 -0
- data/lib/http/retriable/performer.rb +82 -38
- data/lib/http/session.rb +280 -0
- data/lib/http/timeout/global.rb +147 -34
- data/lib/http/timeout/null.rb +155 -9
- data/lib/http/timeout/per_operation.rb +139 -18
- data/lib/http/uri/normalizer.rb +82 -0
- data/lib/http/uri/parsing.rb +182 -0
- data/lib/http/uri.rb +289 -124
- data/lib/http/version.rb +2 -1
- data/lib/http.rb +11 -2
- data/sig/deps.rbs +122 -0
- data/sig/http.rbs +1619 -0
- data/test/http/base64_test.rb +28 -0
- data/test/http/client_test.rb +739 -0
- data/test/http/connection_test.rb +1533 -0
- data/test/http/content_type_test.rb +190 -0
- data/test/http/errors_test.rb +28 -0
- data/test/http/feature_test.rb +49 -0
- data/test/http/features/auto_deflate_test.rb +317 -0
- data/test/http/features/auto_inflate_test.rb +213 -0
- data/test/http/features/caching_test.rb +942 -0
- data/test/http/features/digest_auth_test.rb +996 -0
- data/test/http/features/instrumentation_test.rb +246 -0
- data/test/http/features/logging_test.rb +654 -0
- data/test/http/features/normalize_uri_test.rb +41 -0
- data/test/http/features/raise_error_test.rb +77 -0
- data/test/http/form_data/composite_io_test.rb +215 -0
- data/test/http/form_data/file_test.rb +255 -0
- data/test/http/form_data/fixtures/the-http-gem.info +1 -0
- data/test/http/form_data/multipart_test.rb +303 -0
- data/test/http/form_data/part_test.rb +90 -0
- data/test/http/form_data/urlencoded_test.rb +164 -0
- data/test/http/form_data_test.rb +232 -0
- data/test/http/headers/normalizer_test.rb +93 -0
- data/test/http/headers_test.rb +888 -0
- data/test/http/mime_type/json_test.rb +39 -0
- data/test/http/mime_type_test.rb +150 -0
- data/test/http/options/base_uri_test.rb +148 -0
- data/test/http/options/body_test.rb +21 -0
- data/test/http/options/features_test.rb +38 -0
- data/test/http/options/form_test.rb +21 -0
- data/test/http/options/headers_test.rb +32 -0
- data/test/http/options/json_test.rb +21 -0
- data/test/http/options/merge_test.rb +78 -0
- data/test/http/options/new_test.rb +37 -0
- data/test/http/options/proxy_test.rb +32 -0
- data/test/http/options_test.rb +575 -0
- data/test/http/redirector_test.rb +639 -0
- data/test/http/request/body_test.rb +318 -0
- data/test/http/request/builder_test.rb +623 -0
- data/test/http/request/writer_test.rb +391 -0
- data/test/http/request_test.rb +1733 -0
- data/test/http/response/body_test.rb +292 -0
- data/test/http/response/parser_test.rb +105 -0
- data/test/http/response/status_test.rb +322 -0
- data/test/http/response_test.rb +502 -0
- data/test/http/retriable/delay_calculator_test.rb +194 -0
- data/test/http/retriable/errors_test.rb +71 -0
- data/test/http/retriable/performer_test.rb +551 -0
- data/test/http/session_test.rb +424 -0
- data/test/http/timeout/global_test.rb +239 -0
- data/test/http/timeout/null_test.rb +218 -0
- data/test/http/timeout/per_operation_test.rb +220 -0
- data/test/http/uri/normalizer_test.rb +89 -0
- data/test/http/uri_test.rb +1140 -0
- data/test/http/version_test.rb +15 -0
- data/test/http_test.rb +818 -0
- data/test/regression_tests.rb +27 -0
- data/test/support/dummy_server/encoding_routes.rb +47 -0
- data/test/support/dummy_server/routes.rb +201 -0
- data/test/support/dummy_server/servlet.rb +81 -0
- data/test/support/dummy_server.rb +200 -0
- data/{spec → test}/support/fakeio.rb +2 -2
- data/test/support/http_handling_shared/connection_reuse_tests.rb +97 -0
- data/test/support/http_handling_shared/timeout_tests.rb +134 -0
- data/test/support/http_handling_shared.rb +11 -0
- data/test/support/proxy_server.rb +207 -0
- data/test/support/servers/runner.rb +67 -0
- data/{spec → test}/support/simplecov.rb +11 -2
- data/test/support/ssl_helper.rb +108 -0
- data/test/test_helper.rb +38 -0
- metadata +108 -168
- data/.github/workflows/ci.yml +0 -67
- data/.gitignore +0 -15
- data/.rspec +0 -1
- data/.rubocop/layout.yml +0 -8
- data/.rubocop/metrics.yml +0 -4
- data/.rubocop/rspec.yml +0 -9
- data/.rubocop/style.yml +0 -32
- data/.rubocop.yml +0 -11
- data/.rubocop_todo.yml +0 -219
- data/.yardopts +0 -2
- data/CHANGES_OLD.md +0 -1002
- data/Gemfile +0 -51
- data/Guardfile +0 -18
- data/Rakefile +0 -64
- data/lib/http/headers/mixin.rb +0 -34
- data/lib/http/retriable/client.rb +0 -37
- data/logo.png +0 -0
- data/spec/lib/http/client_spec.rb +0 -556
- data/spec/lib/http/connection_spec.rb +0 -88
- data/spec/lib/http/content_type_spec.rb +0 -47
- data/spec/lib/http/features/auto_deflate_spec.rb +0 -77
- data/spec/lib/http/features/auto_inflate_spec.rb +0 -86
- data/spec/lib/http/features/instrumentation_spec.rb +0 -81
- data/spec/lib/http/features/logging_spec.rb +0 -65
- data/spec/lib/http/features/raise_error_spec.rb +0 -62
- data/spec/lib/http/headers/mixin_spec.rb +0 -36
- data/spec/lib/http/headers/normalizer_spec.rb +0 -52
- data/spec/lib/http/headers_spec.rb +0 -527
- data/spec/lib/http/options/body_spec.rb +0 -15
- data/spec/lib/http/options/features_spec.rb +0 -33
- data/spec/lib/http/options/form_spec.rb +0 -15
- data/spec/lib/http/options/headers_spec.rb +0 -24
- data/spec/lib/http/options/json_spec.rb +0 -15
- data/spec/lib/http/options/merge_spec.rb +0 -68
- data/spec/lib/http/options/new_spec.rb +0 -30
- data/spec/lib/http/options/proxy_spec.rb +0 -20
- data/spec/lib/http/options_spec.rb +0 -13
- data/spec/lib/http/redirector_spec.rb +0 -530
- data/spec/lib/http/request/body_spec.rb +0 -211
- data/spec/lib/http/request/writer_spec.rb +0 -121
- data/spec/lib/http/request_spec.rb +0 -234
- data/spec/lib/http/response/body_spec.rb +0 -85
- data/spec/lib/http/response/parser_spec.rb +0 -74
- data/spec/lib/http/response/status_spec.rb +0 -253
- data/spec/lib/http/response_spec.rb +0 -262
- data/spec/lib/http/retriable/delay_calculator_spec.rb +0 -69
- data/spec/lib/http/retriable/performer_spec.rb +0 -302
- data/spec/lib/http/uri/normalizer_spec.rb +0 -95
- data/spec/lib/http/uri_spec.rb +0 -71
- data/spec/lib/http_spec.rb +0 -535
- data/spec/regression_specs.rb +0 -24
- data/spec/spec_helper.rb +0 -89
- data/spec/support/black_hole.rb +0 -13
- data/spec/support/dummy_server/servlet.rb +0 -203
- data/spec/support/dummy_server.rb +0 -44
- data/spec/support/fuubar.rb +0 -21
- data/spec/support/http_handling_shared.rb +0 -190
- data/spec/support/proxy_server.rb +0 -39
- data/spec/support/servers/config.rb +0 -11
- data/spec/support/servers/runner.rb +0 -19
- data/spec/support/ssl_helper.rb +0 -104
- /data/{spec → test}/support/capture_warning.rb +0 -0
metadata
CHANGED
|
@@ -1,32 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: http
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 6.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tony Arcieri
|
|
8
|
-
- Erik
|
|
8
|
+
- Erik Berlin
|
|
9
9
|
- Alexey V. Zapparov
|
|
10
10
|
- Zachary Anker
|
|
11
|
-
autorequire:
|
|
12
11
|
bindir: bin
|
|
13
12
|
cert_chain: []
|
|
14
|
-
date:
|
|
13
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
15
14
|
dependencies:
|
|
16
|
-
- !ruby/object:Gem::Dependency
|
|
17
|
-
name: addressable
|
|
18
|
-
requirement: !ruby/object:Gem::Requirement
|
|
19
|
-
requirements:
|
|
20
|
-
- - "~>"
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: '2.8'
|
|
23
|
-
type: :runtime
|
|
24
|
-
prerelease: false
|
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
26
|
-
requirements:
|
|
27
|
-
- - "~>"
|
|
28
|
-
- !ruby/object:Gem::Version
|
|
29
|
-
version: '2.8'
|
|
30
15
|
- !ruby/object:Gem::Dependency
|
|
31
16
|
name: http-cookie
|
|
32
17
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -42,47 +27,19 @@ dependencies:
|
|
|
42
27
|
- !ruby/object:Gem::Version
|
|
43
28
|
version: '1.0'
|
|
44
29
|
- !ruby/object:Gem::Dependency
|
|
45
|
-
name:
|
|
46
|
-
requirement: !ruby/object:Gem::Requirement
|
|
47
|
-
requirements:
|
|
48
|
-
- - "~>"
|
|
49
|
-
- !ruby/object:Gem::Version
|
|
50
|
-
version: '2.2'
|
|
51
|
-
type: :runtime
|
|
52
|
-
prerelease: false
|
|
53
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
54
|
-
requirements:
|
|
55
|
-
- - "~>"
|
|
56
|
-
- !ruby/object:Gem::Version
|
|
57
|
-
version: '2.2'
|
|
58
|
-
- !ruby/object:Gem::Dependency
|
|
59
|
-
name: llhttp-ffi
|
|
30
|
+
name: llhttp
|
|
60
31
|
requirement: !ruby/object:Gem::Requirement
|
|
61
32
|
requirements:
|
|
62
33
|
- - "~>"
|
|
63
34
|
- !ruby/object:Gem::Version
|
|
64
|
-
version: 0.
|
|
35
|
+
version: 0.6.1
|
|
65
36
|
type: :runtime
|
|
66
37
|
prerelease: false
|
|
67
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
68
39
|
requirements:
|
|
69
40
|
- - "~>"
|
|
70
41
|
- !ruby/object:Gem::Version
|
|
71
|
-
version: 0.
|
|
72
|
-
- !ruby/object:Gem::Dependency
|
|
73
|
-
name: bundler
|
|
74
|
-
requirement: !ruby/object:Gem::Requirement
|
|
75
|
-
requirements:
|
|
76
|
-
- - "~>"
|
|
77
|
-
- !ruby/object:Gem::Version
|
|
78
|
-
version: '2.0'
|
|
79
|
-
type: :development
|
|
80
|
-
prerelease: false
|
|
81
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
82
|
-
requirements:
|
|
83
|
-
- - "~>"
|
|
84
|
-
- !ruby/object:Gem::Version
|
|
85
|
-
version: '2.0'
|
|
42
|
+
version: 0.6.1
|
|
86
43
|
description: An easy-to-use client library for making requests from Ruby. It uses
|
|
87
44
|
a simple method chaining system for building requests, similar to Python's Requests.
|
|
88
45
|
email:
|
|
@@ -91,51 +48,56 @@ executables: []
|
|
|
91
48
|
extensions: []
|
|
92
49
|
extra_rdoc_files: []
|
|
93
50
|
files:
|
|
94
|
-
- ".github/workflows/ci.yml"
|
|
95
|
-
- ".gitignore"
|
|
96
|
-
- ".rspec"
|
|
97
|
-
- ".rubocop.yml"
|
|
98
|
-
- ".rubocop/layout.yml"
|
|
99
|
-
- ".rubocop/metrics.yml"
|
|
100
|
-
- ".rubocop/rspec.yml"
|
|
101
|
-
- ".rubocop/style.yml"
|
|
102
|
-
- ".rubocop_todo.yml"
|
|
103
|
-
- ".yardopts"
|
|
104
51
|
- CHANGELOG.md
|
|
105
|
-
- CHANGES_OLD.md
|
|
106
52
|
- CONTRIBUTING.md
|
|
107
|
-
- Gemfile
|
|
108
|
-
- Guardfile
|
|
109
53
|
- LICENSE.txt
|
|
110
54
|
- README.md
|
|
111
|
-
- Rakefile
|
|
112
55
|
- SECURITY.md
|
|
56
|
+
- UPGRADING.md
|
|
113
57
|
- http.gemspec
|
|
114
58
|
- lib/http.rb
|
|
115
59
|
- lib/http/base64.rb
|
|
116
60
|
- lib/http/chainable.rb
|
|
61
|
+
- lib/http/chainable/helpers.rb
|
|
62
|
+
- lib/http/chainable/verbs.rb
|
|
117
63
|
- lib/http/client.rb
|
|
118
64
|
- lib/http/connection.rb
|
|
65
|
+
- lib/http/connection/internals.rb
|
|
119
66
|
- lib/http/content_type.rb
|
|
120
67
|
- lib/http/errors.rb
|
|
121
68
|
- lib/http/feature.rb
|
|
122
69
|
- lib/http/features/auto_deflate.rb
|
|
123
70
|
- lib/http/features/auto_inflate.rb
|
|
71
|
+
- lib/http/features/caching.rb
|
|
72
|
+
- lib/http/features/caching/entry.rb
|
|
73
|
+
- lib/http/features/caching/in_memory_store.rb
|
|
74
|
+
- lib/http/features/digest_auth.rb
|
|
124
75
|
- lib/http/features/instrumentation.rb
|
|
125
76
|
- lib/http/features/logging.rb
|
|
126
77
|
- lib/http/features/normalize_uri.rb
|
|
127
78
|
- lib/http/features/raise_error.rb
|
|
79
|
+
- lib/http/form_data.rb
|
|
80
|
+
- lib/http/form_data/composite_io.rb
|
|
81
|
+
- lib/http/form_data/file.rb
|
|
82
|
+
- lib/http/form_data/multipart.rb
|
|
83
|
+
- lib/http/form_data/multipart/param.rb
|
|
84
|
+
- lib/http/form_data/part.rb
|
|
85
|
+
- lib/http/form_data/readable.rb
|
|
86
|
+
- lib/http/form_data/urlencoded.rb
|
|
87
|
+
- lib/http/form_data/version.rb
|
|
128
88
|
- lib/http/headers.rb
|
|
129
89
|
- lib/http/headers/known.rb
|
|
130
|
-
- lib/http/headers/mixin.rb
|
|
131
90
|
- lib/http/headers/normalizer.rb
|
|
132
91
|
- lib/http/mime_type.rb
|
|
133
92
|
- lib/http/mime_type/adapter.rb
|
|
134
93
|
- lib/http/mime_type/json.rb
|
|
135
94
|
- lib/http/options.rb
|
|
95
|
+
- lib/http/options/definitions.rb
|
|
136
96
|
- lib/http/redirector.rb
|
|
137
97
|
- lib/http/request.rb
|
|
138
98
|
- lib/http/request/body.rb
|
|
99
|
+
- lib/http/request/builder.rb
|
|
100
|
+
- lib/http/request/proxy.rb
|
|
139
101
|
- lib/http/request/writer.rb
|
|
140
102
|
- lib/http/response.rb
|
|
141
103
|
- lib/http/response/body.rb
|
|
@@ -143,73 +105,99 @@ files:
|
|
|
143
105
|
- lib/http/response/parser.rb
|
|
144
106
|
- lib/http/response/status.rb
|
|
145
107
|
- lib/http/response/status/reasons.rb
|
|
146
|
-
- lib/http/retriable/client.rb
|
|
147
108
|
- lib/http/retriable/delay_calculator.rb
|
|
148
109
|
- lib/http/retriable/errors.rb
|
|
149
110
|
- lib/http/retriable/performer.rb
|
|
111
|
+
- lib/http/session.rb
|
|
150
112
|
- lib/http/timeout/global.rb
|
|
151
113
|
- lib/http/timeout/null.rb
|
|
152
114
|
- lib/http/timeout/per_operation.rb
|
|
153
115
|
- lib/http/uri.rb
|
|
116
|
+
- lib/http/uri/normalizer.rb
|
|
117
|
+
- lib/http/uri/parsing.rb
|
|
154
118
|
- lib/http/version.rb
|
|
155
|
-
-
|
|
156
|
-
-
|
|
157
|
-
-
|
|
158
|
-
-
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
-
|
|
163
|
-
-
|
|
164
|
-
-
|
|
165
|
-
-
|
|
166
|
-
-
|
|
167
|
-
-
|
|
168
|
-
-
|
|
169
|
-
-
|
|
170
|
-
-
|
|
171
|
-
-
|
|
172
|
-
-
|
|
173
|
-
-
|
|
174
|
-
-
|
|
175
|
-
-
|
|
176
|
-
-
|
|
177
|
-
-
|
|
178
|
-
-
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
-
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
193
|
-
-
|
|
194
|
-
-
|
|
195
|
-
-
|
|
196
|
-
-
|
|
197
|
-
-
|
|
198
|
-
-
|
|
199
|
-
-
|
|
200
|
-
-
|
|
201
|
-
-
|
|
202
|
-
-
|
|
119
|
+
- sig/deps.rbs
|
|
120
|
+
- sig/http.rbs
|
|
121
|
+
- test/http/base64_test.rb
|
|
122
|
+
- test/http/client_test.rb
|
|
123
|
+
- test/http/connection_test.rb
|
|
124
|
+
- test/http/content_type_test.rb
|
|
125
|
+
- test/http/errors_test.rb
|
|
126
|
+
- test/http/feature_test.rb
|
|
127
|
+
- test/http/features/auto_deflate_test.rb
|
|
128
|
+
- test/http/features/auto_inflate_test.rb
|
|
129
|
+
- test/http/features/caching_test.rb
|
|
130
|
+
- test/http/features/digest_auth_test.rb
|
|
131
|
+
- test/http/features/instrumentation_test.rb
|
|
132
|
+
- test/http/features/logging_test.rb
|
|
133
|
+
- test/http/features/normalize_uri_test.rb
|
|
134
|
+
- test/http/features/raise_error_test.rb
|
|
135
|
+
- test/http/form_data/composite_io_test.rb
|
|
136
|
+
- test/http/form_data/file_test.rb
|
|
137
|
+
- test/http/form_data/fixtures/the-http-gem.info
|
|
138
|
+
- test/http/form_data/multipart_test.rb
|
|
139
|
+
- test/http/form_data/part_test.rb
|
|
140
|
+
- test/http/form_data/urlencoded_test.rb
|
|
141
|
+
- test/http/form_data_test.rb
|
|
142
|
+
- test/http/headers/normalizer_test.rb
|
|
143
|
+
- test/http/headers_test.rb
|
|
144
|
+
- test/http/mime_type/json_test.rb
|
|
145
|
+
- test/http/mime_type_test.rb
|
|
146
|
+
- test/http/options/base_uri_test.rb
|
|
147
|
+
- test/http/options/body_test.rb
|
|
148
|
+
- test/http/options/features_test.rb
|
|
149
|
+
- test/http/options/form_test.rb
|
|
150
|
+
- test/http/options/headers_test.rb
|
|
151
|
+
- test/http/options/json_test.rb
|
|
152
|
+
- test/http/options/merge_test.rb
|
|
153
|
+
- test/http/options/new_test.rb
|
|
154
|
+
- test/http/options/proxy_test.rb
|
|
155
|
+
- test/http/options_test.rb
|
|
156
|
+
- test/http/redirector_test.rb
|
|
157
|
+
- test/http/request/body_test.rb
|
|
158
|
+
- test/http/request/builder_test.rb
|
|
159
|
+
- test/http/request/writer_test.rb
|
|
160
|
+
- test/http/request_test.rb
|
|
161
|
+
- test/http/response/body_test.rb
|
|
162
|
+
- test/http/response/parser_test.rb
|
|
163
|
+
- test/http/response/status_test.rb
|
|
164
|
+
- test/http/response_test.rb
|
|
165
|
+
- test/http/retriable/delay_calculator_test.rb
|
|
166
|
+
- test/http/retriable/errors_test.rb
|
|
167
|
+
- test/http/retriable/performer_test.rb
|
|
168
|
+
- test/http/session_test.rb
|
|
169
|
+
- test/http/timeout/global_test.rb
|
|
170
|
+
- test/http/timeout/null_test.rb
|
|
171
|
+
- test/http/timeout/per_operation_test.rb
|
|
172
|
+
- test/http/uri/normalizer_test.rb
|
|
173
|
+
- test/http/uri_test.rb
|
|
174
|
+
- test/http/version_test.rb
|
|
175
|
+
- test/http_test.rb
|
|
176
|
+
- test/regression_tests.rb
|
|
177
|
+
- test/support/capture_warning.rb
|
|
178
|
+
- test/support/dummy_server.rb
|
|
179
|
+
- test/support/dummy_server/encoding_routes.rb
|
|
180
|
+
- test/support/dummy_server/routes.rb
|
|
181
|
+
- test/support/dummy_server/servlet.rb
|
|
182
|
+
- test/support/fakeio.rb
|
|
183
|
+
- test/support/http_handling_shared.rb
|
|
184
|
+
- test/support/http_handling_shared/connection_reuse_tests.rb
|
|
185
|
+
- test/support/http_handling_shared/timeout_tests.rb
|
|
186
|
+
- test/support/proxy_server.rb
|
|
187
|
+
- test/support/servers/runner.rb
|
|
188
|
+
- test/support/simplecov.rb
|
|
189
|
+
- test/support/ssl_helper.rb
|
|
190
|
+
- test/test_helper.rb
|
|
203
191
|
homepage: https://github.com/httprb/http
|
|
204
192
|
licenses:
|
|
205
193
|
- MIT
|
|
206
194
|
metadata:
|
|
207
|
-
|
|
208
|
-
|
|
195
|
+
homepage_uri: https://github.com/httprb/http
|
|
196
|
+
source_code_uri: https://github.com/httprb/http/tree/v6.0.0
|
|
209
197
|
bug_tracker_uri: https://github.com/httprb/http/issues
|
|
210
|
-
changelog_uri: https://github.com/httprb/http/blob/
|
|
198
|
+
changelog_uri: https://github.com/httprb/http/blob/v6.0.0/CHANGELOG.md
|
|
199
|
+
documentation_uri: https://www.rubydoc.info/gems/http/6.0.0
|
|
211
200
|
rubygems_mfa_required: 'true'
|
|
212
|
-
post_install_message:
|
|
213
201
|
rdoc_options: []
|
|
214
202
|
require_paths:
|
|
215
203
|
- lib
|
|
@@ -217,62 +205,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
217
205
|
requirements:
|
|
218
206
|
- - ">="
|
|
219
207
|
- !ruby/object:Gem::Version
|
|
220
|
-
version: '2
|
|
208
|
+
version: '3.2'
|
|
221
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
210
|
requirements:
|
|
223
211
|
- - ">="
|
|
224
212
|
- !ruby/object:Gem::Version
|
|
225
213
|
version: '0'
|
|
226
214
|
requirements: []
|
|
227
|
-
rubygems_version:
|
|
228
|
-
signing_key:
|
|
215
|
+
rubygems_version: 4.0.6
|
|
229
216
|
specification_version: 4
|
|
230
217
|
summary: HTTP should be easy
|
|
231
|
-
test_files:
|
|
232
|
-
- spec/lib/http/client_spec.rb
|
|
233
|
-
- spec/lib/http/connection_spec.rb
|
|
234
|
-
- spec/lib/http/content_type_spec.rb
|
|
235
|
-
- spec/lib/http/features/auto_deflate_spec.rb
|
|
236
|
-
- spec/lib/http/features/auto_inflate_spec.rb
|
|
237
|
-
- spec/lib/http/features/instrumentation_spec.rb
|
|
238
|
-
- spec/lib/http/features/logging_spec.rb
|
|
239
|
-
- spec/lib/http/features/raise_error_spec.rb
|
|
240
|
-
- spec/lib/http/headers/mixin_spec.rb
|
|
241
|
-
- spec/lib/http/headers/normalizer_spec.rb
|
|
242
|
-
- spec/lib/http/headers_spec.rb
|
|
243
|
-
- spec/lib/http/options/body_spec.rb
|
|
244
|
-
- spec/lib/http/options/features_spec.rb
|
|
245
|
-
- spec/lib/http/options/form_spec.rb
|
|
246
|
-
- spec/lib/http/options/headers_spec.rb
|
|
247
|
-
- spec/lib/http/options/json_spec.rb
|
|
248
|
-
- spec/lib/http/options/merge_spec.rb
|
|
249
|
-
- spec/lib/http/options/new_spec.rb
|
|
250
|
-
- spec/lib/http/options/proxy_spec.rb
|
|
251
|
-
- spec/lib/http/options_spec.rb
|
|
252
|
-
- spec/lib/http/redirector_spec.rb
|
|
253
|
-
- spec/lib/http/request/body_spec.rb
|
|
254
|
-
- spec/lib/http/request/writer_spec.rb
|
|
255
|
-
- spec/lib/http/request_spec.rb
|
|
256
|
-
- spec/lib/http/response/body_spec.rb
|
|
257
|
-
- spec/lib/http/response/parser_spec.rb
|
|
258
|
-
- spec/lib/http/response/status_spec.rb
|
|
259
|
-
- spec/lib/http/response_spec.rb
|
|
260
|
-
- spec/lib/http/retriable/delay_calculator_spec.rb
|
|
261
|
-
- spec/lib/http/retriable/performer_spec.rb
|
|
262
|
-
- spec/lib/http/uri/normalizer_spec.rb
|
|
263
|
-
- spec/lib/http/uri_spec.rb
|
|
264
|
-
- spec/lib/http_spec.rb
|
|
265
|
-
- spec/regression_specs.rb
|
|
266
|
-
- spec/spec_helper.rb
|
|
267
|
-
- spec/support/black_hole.rb
|
|
268
|
-
- spec/support/capture_warning.rb
|
|
269
|
-
- spec/support/dummy_server.rb
|
|
270
|
-
- spec/support/dummy_server/servlet.rb
|
|
271
|
-
- spec/support/fakeio.rb
|
|
272
|
-
- spec/support/fuubar.rb
|
|
273
|
-
- spec/support/http_handling_shared.rb
|
|
274
|
-
- spec/support/proxy_server.rb
|
|
275
|
-
- spec/support/servers/config.rb
|
|
276
|
-
- spec/support/servers/runner.rb
|
|
277
|
-
- spec/support/simplecov.rb
|
|
278
|
-
- spec/support/ssl_helper.rb
|
|
218
|
+
test_files: []
|
data/.github/workflows/ci.yml
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ main, 5-x-stable ]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [ main, 5-x-stable ]
|
|
8
|
-
|
|
9
|
-
env:
|
|
10
|
-
BUNDLE_WITHOUT: "development"
|
|
11
|
-
JRUBY_OPTS: "--dev --debug"
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
test:
|
|
15
|
-
runs-on: ${{ matrix.os }}
|
|
16
|
-
|
|
17
|
-
strategy:
|
|
18
|
-
matrix:
|
|
19
|
-
ruby: [ ruby-2.6, ruby-2.7, ruby-3.0, ruby-3.1, ruby-3.2, ruby-3.3 ]
|
|
20
|
-
os: [ ubuntu-latest ]
|
|
21
|
-
|
|
22
|
-
steps:
|
|
23
|
-
- uses: actions/checkout@v4
|
|
24
|
-
|
|
25
|
-
- uses: ruby/setup-ruby@v1
|
|
26
|
-
with:
|
|
27
|
-
ruby-version: ${{ matrix.ruby }}
|
|
28
|
-
bundler-cache: true
|
|
29
|
-
|
|
30
|
-
- name: bundle exec rspec
|
|
31
|
-
run: bundle exec rspec --format progress --force-colour
|
|
32
|
-
|
|
33
|
-
test-flaky:
|
|
34
|
-
runs-on: ${{ matrix.os }}
|
|
35
|
-
|
|
36
|
-
strategy:
|
|
37
|
-
matrix:
|
|
38
|
-
ruby: [ jruby-9.3 ]
|
|
39
|
-
os: [ ubuntu-latest ]
|
|
40
|
-
|
|
41
|
-
steps:
|
|
42
|
-
- uses: actions/checkout@v4
|
|
43
|
-
|
|
44
|
-
- uses: ruby/setup-ruby@v1
|
|
45
|
-
with:
|
|
46
|
-
ruby-version: ${{ matrix.ruby }}
|
|
47
|
-
bundler-cache: true
|
|
48
|
-
|
|
49
|
-
- name: bundle exec rspec
|
|
50
|
-
continue-on-error: true
|
|
51
|
-
run: bundle exec rspec --format progress --force-colour
|
|
52
|
-
|
|
53
|
-
lint:
|
|
54
|
-
runs-on: ubuntu-latest
|
|
55
|
-
|
|
56
|
-
steps:
|
|
57
|
-
- uses: actions/checkout@v4
|
|
58
|
-
|
|
59
|
-
- uses: ruby/setup-ruby@v1
|
|
60
|
-
with:
|
|
61
|
-
ruby-version: 2.6
|
|
62
|
-
bundler-cache: true
|
|
63
|
-
|
|
64
|
-
- name: bundle exec rubocop
|
|
65
|
-
run: bundle exec rubocop --format progress --color
|
|
66
|
-
|
|
67
|
-
- run: bundle exec rake verify_measurements
|
data/.gitignore
DELETED
data/.rspec
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
--require spec_helper
|
data/.rubocop/layout.yml
DELETED
data/.rubocop/metrics.yml
DELETED
data/.rubocop/rspec.yml
DELETED
data/.rubocop/style.yml
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
Style/Documentation:
|
|
2
|
-
Enabled: false
|
|
3
|
-
|
|
4
|
-
Style/DocumentDynamicEvalDefinition:
|
|
5
|
-
Enabled: true
|
|
6
|
-
Exclude:
|
|
7
|
-
- 'spec/**/*.rb'
|
|
8
|
-
|
|
9
|
-
Style/FormatStringToken:
|
|
10
|
-
Enabled: true
|
|
11
|
-
EnforcedStyle: unannotated
|
|
12
|
-
|
|
13
|
-
Style/HashSyntax:
|
|
14
|
-
Enabled: true
|
|
15
|
-
EnforcedStyle: hash_rockets
|
|
16
|
-
|
|
17
|
-
Style/OptionHash:
|
|
18
|
-
Enabled: true
|
|
19
|
-
|
|
20
|
-
Style/RescueStandardError:
|
|
21
|
-
Enabled: true
|
|
22
|
-
EnforcedStyle: implicit
|
|
23
|
-
|
|
24
|
-
Style/StringLiterals:
|
|
25
|
-
Enabled: true
|
|
26
|
-
EnforcedStyle: double_quotes
|
|
27
|
-
|
|
28
|
-
Style/WordArray:
|
|
29
|
-
Enabled: true
|
|
30
|
-
|
|
31
|
-
Style/YodaCondition:
|
|
32
|
-
Enabled: false
|