httpsensible 0.1.1
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 +7 -0
- data/.rubocop.yml +4 -0
- data/.ruby-version +1 -0
- data/.vscode/settings.json +8 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +18 -0
- data/LICENSE.txt +21 -0
- data/README.md +45 -0
- data/Rakefile +20 -0
- data/lib/httpsensible/client/response.rb +54 -0
- data/lib/httpsensible/client.rb +39 -0
- data/lib/httpsensible/jwt.rb +26 -0
- data/lib/httpsensible/version.rb +6 -0
- data/lib/httpsensible.rb +10 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +22 -0
- data/sorbet/rbi/gems/activesupport@7.0.6.rbi +14 -0
- data/sorbet/rbi/gems/addressable@2.8.4.rbi +1954 -0
- data/sorbet/rbi/gems/amazing_print@1.5.0.rbi +923 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi +8 -0
- data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
- data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +350 -0
- data/sorbet/rbi/gems/http-2-next@0.5.1.rbi +1441 -0
- data/sorbet/rbi/gems/httpx@0.24.1.rbi +3255 -0
- data/sorbet/rbi/gems/i18n@1.14.1.rbi +8 -0
- data/sorbet/rbi/gems/io-console@0.6.0.rbi +8 -0
- data/sorbet/rbi/gems/irb@1.7.1.rbi +342 -0
- data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
- data/sorbet/rbi/gems/jwt@2.7.1.rbi +1404 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +91 -0
- data/sorbet/rbi/gems/minitest@5.18.1.rbi +1503 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
- data/sorbet/rbi/gems/parser@3.2.2.3.rbi +7253 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/public_suffix@5.0.1.rbi +935 -0
- data/sorbet/rbi/gems/racc@1.7.1.rbi +161 -0
- data/sorbet/rbi/gems/rack@3.0.8.rbi +5183 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +3024 -0
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +2999 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.1.rbi +3749 -0
- data/sorbet/rbi/gems/reline@0.3.6.rbi +8 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
- data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +6985 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.31.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-performance@1.18.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-rails@2.20.2.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-shopify@2.14.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop-standard@7.1.0.rbi +8 -0
- data/sorbet/rbi/gems/rubocop@1.54.1.rbi +56172 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/spoom@1.2.2.rbi +2994 -0
- data/sorbet/rbi/gems/syntax_tree@6.1.1.rbi +22855 -0
- data/sorbet/rbi/gems/tapioca@0.11.7.rbi +3347 -0
- data/sorbet/rbi/gems/thor@1.2.2.rbi +3965 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +8 -0
- data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
- data/sorbet/rbi/gems/unparser@0.6.8.rbi +4525 -0
- data/sorbet/rbi/gems/webmock@3.18.1.rbi +1756 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +190 -0
|
@@ -0,0 +1,3255 @@
|
|
|
1
|
+
# typed: true
|
|
2
|
+
|
|
3
|
+
# DO NOT EDIT MANUALLY
|
|
4
|
+
# This is an autogenerated file for types exported from the `httpx` gem.
|
|
5
|
+
# Please instead update this file by running `bin/tapioca gem httpx`.
|
|
6
|
+
|
|
7
|
+
# Top-Level Namespace
|
|
8
|
+
#
|
|
9
|
+
# source://httpx//lib/httpx/version.rb#3
|
|
10
|
+
module HTTPX
|
|
11
|
+
extend ::HTTPX::Chainable
|
|
12
|
+
|
|
13
|
+
class << self
|
|
14
|
+
# :nocov:
|
|
15
|
+
#
|
|
16
|
+
# source://httpx//lib/httpx.rb#57
|
|
17
|
+
def const_missing(const_name); end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# source://httpx//lib/httpx/altsvc.rb#6
|
|
22
|
+
module HTTPX::AltSvc
|
|
23
|
+
private
|
|
24
|
+
|
|
25
|
+
# source://httpx//lib/httpx/altsvc.rb#12
|
|
26
|
+
def cached_altsvc(origin); end
|
|
27
|
+
|
|
28
|
+
# source://httpx//lib/httpx/altsvc.rb#19
|
|
29
|
+
def cached_altsvc_set(origin, entry); end
|
|
30
|
+
|
|
31
|
+
# source://httpx//lib/httpx/altsvc.rb#39
|
|
32
|
+
def emit(request, response); end
|
|
33
|
+
|
|
34
|
+
# source://httpx//lib/httpx/altsvc.rb#30
|
|
35
|
+
def lookup(origin, ttl); end
|
|
36
|
+
|
|
37
|
+
# source://httpx//lib/httpx/altsvc.rb#68
|
|
38
|
+
def parse(altsvc); end
|
|
39
|
+
|
|
40
|
+
# source://httpx//lib/httpx/altsvc.rb#117
|
|
41
|
+
def parse_altsvc_origin(alt_proto, alt_origin); end
|
|
42
|
+
|
|
43
|
+
# source://httpx//lib/httpx/altsvc.rb#92
|
|
44
|
+
def parse_altsvc_scheme(alt_proto); end
|
|
45
|
+
|
|
46
|
+
class << self
|
|
47
|
+
# source://httpx//lib/httpx/altsvc.rb#12
|
|
48
|
+
def cached_altsvc(origin); end
|
|
49
|
+
|
|
50
|
+
# source://httpx//lib/httpx/altsvc.rb#19
|
|
51
|
+
def cached_altsvc_set(origin, entry); end
|
|
52
|
+
|
|
53
|
+
# source://httpx//lib/httpx/altsvc.rb#39
|
|
54
|
+
def emit(request, response); end
|
|
55
|
+
|
|
56
|
+
# source://httpx//lib/httpx/altsvc.rb#30
|
|
57
|
+
def lookup(origin, ttl); end
|
|
58
|
+
|
|
59
|
+
# source://httpx//lib/httpx/altsvc.rb#68
|
|
60
|
+
def parse(altsvc); end
|
|
61
|
+
|
|
62
|
+
# source://httpx//lib/httpx/altsvc.rb#117
|
|
63
|
+
def parse_altsvc_origin(alt_proto, alt_origin); end
|
|
64
|
+
|
|
65
|
+
# source://httpx//lib/httpx/altsvc.rb#92
|
|
66
|
+
def parse_altsvc_scheme(alt_proto); end
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# source://httpx//lib/httpx/extensions.rb#96
|
|
71
|
+
module HTTPX::ArrayExtensions; end
|
|
72
|
+
|
|
73
|
+
# source://httpx//lib/httpx/extensions.rb#97
|
|
74
|
+
module HTTPX::ArrayExtensions::FilterMap; end
|
|
75
|
+
|
|
76
|
+
# source://httpx//lib/httpx/extensions.rb#121
|
|
77
|
+
module HTTPX::ArrayExtensions::Intersect; end
|
|
78
|
+
|
|
79
|
+
# source://httpx//lib/httpx/extensions.rb#111
|
|
80
|
+
module HTTPX::ArrayExtensions::Sum; end
|
|
81
|
+
|
|
82
|
+
# source://httpx//lib/httpx/buffer.rb#6
|
|
83
|
+
class HTTPX::Buffer
|
|
84
|
+
extend ::Forwardable
|
|
85
|
+
|
|
86
|
+
# @return [Buffer] a new instance of Buffer
|
|
87
|
+
#
|
|
88
|
+
# source://httpx//lib/httpx/buffer.rb#25
|
|
89
|
+
def initialize(limit); end
|
|
90
|
+
|
|
91
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
92
|
+
def <<(*args, **_arg1, &block); end
|
|
93
|
+
|
|
94
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
95
|
+
def bytesize(*args, **_arg1, &block); end
|
|
96
|
+
|
|
97
|
+
# source://httpx//lib/httpx/buffer.rb#34
|
|
98
|
+
def capacity; end
|
|
99
|
+
|
|
100
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
101
|
+
def clear(*args, **_arg1, &block); end
|
|
102
|
+
|
|
103
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
104
|
+
def empty?(*args, **_arg1, &block); end
|
|
105
|
+
|
|
106
|
+
# @return [Boolean]
|
|
107
|
+
#
|
|
108
|
+
# source://httpx//lib/httpx/buffer.rb#30
|
|
109
|
+
def full?; end
|
|
110
|
+
|
|
111
|
+
# Returns the value of attribute limit.
|
|
112
|
+
#
|
|
113
|
+
# source://httpx//lib/httpx/buffer.rb#23
|
|
114
|
+
def limit; end
|
|
115
|
+
|
|
116
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
117
|
+
def replace(*args, **_arg1, &block); end
|
|
118
|
+
|
|
119
|
+
# source://httpx//lib/httpx/buffer.rb#38
|
|
120
|
+
def shift!(fin); end
|
|
121
|
+
|
|
122
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
123
|
+
def to_s(*args, **_arg1, &block); end
|
|
124
|
+
|
|
125
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
126
|
+
def to_str(*args, **_arg1, &block); end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# source://httpx//lib/httpx/callbacks.rb#4
|
|
130
|
+
module HTTPX::Callbacks
|
|
131
|
+
# @return [Boolean]
|
|
132
|
+
#
|
|
133
|
+
# source://httpx//lib/httpx/callbacks.rb#27
|
|
134
|
+
def callbacks_for?(type); end
|
|
135
|
+
|
|
136
|
+
# source://httpx//lib/httpx/callbacks.rb#23
|
|
137
|
+
def emit(type, *args); end
|
|
138
|
+
|
|
139
|
+
# source://httpx//lib/httpx/callbacks.rb#5
|
|
140
|
+
def on(type, &action); end
|
|
141
|
+
|
|
142
|
+
# source://httpx//lib/httpx/callbacks.rb#10
|
|
143
|
+
def once(type, &block); end
|
|
144
|
+
|
|
145
|
+
# source://httpx//lib/httpx/callbacks.rb#18
|
|
146
|
+
def only(type, &block); end
|
|
147
|
+
|
|
148
|
+
protected
|
|
149
|
+
|
|
150
|
+
# source://httpx//lib/httpx/callbacks.rb#33
|
|
151
|
+
def callbacks(type = T.unsafe(nil)); end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# source://httpx//lib/httpx/chainable.rb#4
|
|
155
|
+
module HTTPX::Chainable
|
|
156
|
+
# :nocov:
|
|
157
|
+
#
|
|
158
|
+
# source://httpx//lib/httpx/chainable.rb#42
|
|
159
|
+
def accept(type); end
|
|
160
|
+
|
|
161
|
+
# source://httpx//lib/httpx/chainable.rb#7
|
|
162
|
+
def connect(*uri, **options); end
|
|
163
|
+
|
|
164
|
+
# source://httpx//lib/httpx/chainable.rb#7
|
|
165
|
+
def delete(*uri, **options); end
|
|
166
|
+
|
|
167
|
+
# source://httpx//lib/httpx/chainable.rb#7
|
|
168
|
+
def get(*uri, **options); end
|
|
169
|
+
|
|
170
|
+
# source://httpx//lib/httpx/chainable.rb#7
|
|
171
|
+
def head(*uri, **options); end
|
|
172
|
+
|
|
173
|
+
# source://httpx//lib/httpx/chainable.rb#36
|
|
174
|
+
def headers(headers); end
|
|
175
|
+
|
|
176
|
+
# source://httpx//lib/httpx/chainable.rb#20
|
|
177
|
+
def on_connection_closed(&blk); end
|
|
178
|
+
|
|
179
|
+
# source://httpx//lib/httpx/chainable.rb#20
|
|
180
|
+
def on_connection_opened(&blk); end
|
|
181
|
+
|
|
182
|
+
# source://httpx//lib/httpx/chainable.rb#20
|
|
183
|
+
def on_request_body_chunk(&blk); end
|
|
184
|
+
|
|
185
|
+
# source://httpx//lib/httpx/chainable.rb#20
|
|
186
|
+
def on_request_completed(&blk); end
|
|
187
|
+
|
|
188
|
+
# source://httpx//lib/httpx/chainable.rb#20
|
|
189
|
+
def on_request_error(&blk); end
|
|
190
|
+
|
|
191
|
+
# source://httpx//lib/httpx/chainable.rb#20
|
|
192
|
+
def on_request_started(&blk); end
|
|
193
|
+
|
|
194
|
+
# source://httpx//lib/httpx/chainable.rb#20
|
|
195
|
+
def on_response_body_chunk(&blk); end
|
|
196
|
+
|
|
197
|
+
# source://httpx//lib/httpx/chainable.rb#20
|
|
198
|
+
def on_response_completed(&blk); end
|
|
199
|
+
|
|
200
|
+
# source://httpx//lib/httpx/chainable.rb#20
|
|
201
|
+
def on_response_started(&blk); end
|
|
202
|
+
|
|
203
|
+
# source://httpx//lib/httpx/chainable.rb#7
|
|
204
|
+
def options(*uri, **options); end
|
|
205
|
+
|
|
206
|
+
# source://httpx//lib/httpx/chainable.rb#7
|
|
207
|
+
def patch(*uri, **options); end
|
|
208
|
+
|
|
209
|
+
# source://httpx//lib/httpx/chainable.rb#50
|
|
210
|
+
def plugin(pl, options = T.unsafe(nil), &blk); end
|
|
211
|
+
|
|
212
|
+
# deprecated
|
|
213
|
+
# :nocov:
|
|
214
|
+
#
|
|
215
|
+
# source://httpx//lib/httpx/chainable.rb#59
|
|
216
|
+
def plugins(pls); end
|
|
217
|
+
|
|
218
|
+
# source://httpx//lib/httpx/chainable.rb#7
|
|
219
|
+
def post(*uri, **options); end
|
|
220
|
+
|
|
221
|
+
# source://httpx//lib/httpx/chainable.rb#7
|
|
222
|
+
def put(*uri, **options); end
|
|
223
|
+
|
|
224
|
+
# source://httpx//lib/httpx/chainable.rb#26
|
|
225
|
+
def request(*args, **options); end
|
|
226
|
+
|
|
227
|
+
# :nocov:
|
|
228
|
+
#
|
|
229
|
+
# source://httpx//lib/httpx/chainable.rb#31
|
|
230
|
+
def timeout(**args); end
|
|
231
|
+
|
|
232
|
+
# source://httpx//lib/httpx/chainable.rb#7
|
|
233
|
+
def trace(*uri, **options); end
|
|
234
|
+
|
|
235
|
+
# :nocov:
|
|
236
|
+
#
|
|
237
|
+
# source://httpx//lib/httpx/chainable.rb#68
|
|
238
|
+
def with(options, &blk); end
|
|
239
|
+
|
|
240
|
+
# source://httpx//lib/httpx/chainable.rb#46
|
|
241
|
+
def wrap(&blk); end
|
|
242
|
+
|
|
243
|
+
protected
|
|
244
|
+
|
|
245
|
+
# source://httpx//lib/httpx/chainable.rb#74
|
|
246
|
+
def on(*args, &blk); end
|
|
247
|
+
|
|
248
|
+
private
|
|
249
|
+
|
|
250
|
+
# source://httpx//lib/httpx/chainable.rb#84
|
|
251
|
+
def branch(options, &blk); end
|
|
252
|
+
|
|
253
|
+
# source://httpx//lib/httpx/chainable.rb#80
|
|
254
|
+
def default_options; end
|
|
255
|
+
|
|
256
|
+
# source://httpx//lib/httpx/chainable.rb#90
|
|
257
|
+
def method_missing(meth, *args, **options); end
|
|
258
|
+
|
|
259
|
+
# @return [Boolean]
|
|
260
|
+
#
|
|
261
|
+
# source://httpx//lib/httpx/chainable.rb#100
|
|
262
|
+
def respond_to_missing?(meth, *_arg1); end
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
# source://httpx//lib/httpx/errors.rb#27
|
|
266
|
+
class HTTPX::ConnectTimeoutError < ::HTTPX::TimeoutError; end
|
|
267
|
+
|
|
268
|
+
# The Connection can be watched for IO events.
|
|
269
|
+
#
|
|
270
|
+
# It contains the +io+ object to read/write from, and knows what to do when it can.
|
|
271
|
+
#
|
|
272
|
+
# It defers connecting until absolutely necessary. Connection should be triggered from
|
|
273
|
+
# the IO selector (until then, any request will be queued).
|
|
274
|
+
#
|
|
275
|
+
# A connection boots up its parser after connection is established. All pending requests
|
|
276
|
+
# will be redirected there after connection.
|
|
277
|
+
#
|
|
278
|
+
# A connection can be prevented from closing by the parser, that is, if there are pending
|
|
279
|
+
# requests. This will signal that the connection was prematurely closed, due to a possible
|
|
280
|
+
# number of conditions:
|
|
281
|
+
#
|
|
282
|
+
# * Remote peer closed the connection ("Connection: close");
|
|
283
|
+
# * Remote peer doesn't support pipelining;
|
|
284
|
+
#
|
|
285
|
+
# A connection may also route requests for a different host for which the +io+ was connected
|
|
286
|
+
# to, provided that the IP is the same and the port and scheme as well. This will allow to
|
|
287
|
+
# share the same socket to send HTTP/2 requests to different hosts.
|
|
288
|
+
#
|
|
289
|
+
# source://httpx//lib/httpx/connection.rb#30
|
|
290
|
+
class HTTPX::Connection
|
|
291
|
+
include ::HTTPX::Loggable
|
|
292
|
+
include ::HTTPX::Callbacks
|
|
293
|
+
extend ::Forwardable
|
|
294
|
+
|
|
295
|
+
# @return [Connection] a new instance of Connection
|
|
296
|
+
#
|
|
297
|
+
# source://httpx//lib/httpx/connection.rb#51
|
|
298
|
+
def initialize(type, uri, options); end
|
|
299
|
+
|
|
300
|
+
# source://httpx//lib/httpx/connection.rb#88
|
|
301
|
+
def addresses; end
|
|
302
|
+
|
|
303
|
+
# this is a semi-private method, to be used by the resolver
|
|
304
|
+
# to initiate the io object.
|
|
305
|
+
#
|
|
306
|
+
# source://httpx//lib/httpx/connection.rb#80
|
|
307
|
+
def addresses=(addrs); end
|
|
308
|
+
|
|
309
|
+
# source://httpx//lib/httpx/connection.rb#204
|
|
310
|
+
def call; end
|
|
311
|
+
|
|
312
|
+
# source://httpx//lib/httpx/connection.rb#218
|
|
313
|
+
def close; end
|
|
314
|
+
|
|
315
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
316
|
+
def closed?(*args, **_arg1, &block); end
|
|
317
|
+
|
|
318
|
+
# coalescable connections need to be mergeable!
|
|
319
|
+
# but internally, #mergeable? is called before #coalescable?
|
|
320
|
+
#
|
|
321
|
+
# @return [Boolean]
|
|
322
|
+
#
|
|
323
|
+
# source://httpx//lib/httpx/connection.rb#124
|
|
324
|
+
def coalescable?(connection); end
|
|
325
|
+
|
|
326
|
+
# @return [Boolean]
|
|
327
|
+
#
|
|
328
|
+
# source://httpx//lib/httpx/connection.rb#176
|
|
329
|
+
def connecting?; end
|
|
330
|
+
|
|
331
|
+
# source://httpx//lib/httpx/connection.rb#135
|
|
332
|
+
def create_idle(options = T.unsafe(nil)); end
|
|
333
|
+
|
|
334
|
+
# source://httpx//lib/httpx/connection.rb#283
|
|
335
|
+
def deactivate; end
|
|
336
|
+
|
|
337
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
338
|
+
def empty?(*args, **_arg1, &block); end
|
|
339
|
+
|
|
340
|
+
# Returns the value of attribute family.
|
|
341
|
+
#
|
|
342
|
+
# source://httpx//lib/httpx/connection.rb#49
|
|
343
|
+
def family; end
|
|
344
|
+
|
|
345
|
+
# Sets the attribute family
|
|
346
|
+
#
|
|
347
|
+
# @param value the value to set the attribute family to.
|
|
348
|
+
#
|
|
349
|
+
# source://httpx//lib/httpx/connection.rb#49
|
|
350
|
+
def family=(_arg0); end
|
|
351
|
+
|
|
352
|
+
# bypasses the state machine to force closing of connections still connecting.
|
|
353
|
+
# **only** used for Happy Eyeballs v2.
|
|
354
|
+
#
|
|
355
|
+
# source://httpx//lib/httpx/connection.rb#226
|
|
356
|
+
def force_reset; end
|
|
357
|
+
|
|
358
|
+
# @return [Boolean]
|
|
359
|
+
#
|
|
360
|
+
# source://httpx//lib/httpx/connection.rb#180
|
|
361
|
+
def inflight?; end
|
|
362
|
+
|
|
363
|
+
# source://httpx//lib/httpx/connection.rb#184
|
|
364
|
+
def interests; end
|
|
365
|
+
|
|
366
|
+
# Returns the value of attribute io.
|
|
367
|
+
#
|
|
368
|
+
# source://httpx//lib/httpx/connection.rb#45
|
|
369
|
+
def io; end
|
|
370
|
+
|
|
371
|
+
# @return [Boolean]
|
|
372
|
+
#
|
|
373
|
+
# source://httpx//lib/httpx/connection.rb#92
|
|
374
|
+
def match?(uri, options); end
|
|
375
|
+
|
|
376
|
+
# @return [Boolean]
|
|
377
|
+
#
|
|
378
|
+
# source://httpx//lib/httpx/connection.rb#168
|
|
379
|
+
def match_altsvc_options?(uri, options); end
|
|
380
|
+
|
|
381
|
+
# checks if this is connection is an alternative service of
|
|
382
|
+
# +uri+
|
|
383
|
+
#
|
|
384
|
+
# @return [Boolean]
|
|
385
|
+
#
|
|
386
|
+
# source://httpx//lib/httpx/connection.rb#160
|
|
387
|
+
def match_altsvcs?(uri); end
|
|
388
|
+
|
|
389
|
+
# source://httpx//lib/httpx/connection.rb#139
|
|
390
|
+
def merge(connection); end
|
|
391
|
+
|
|
392
|
+
# @return [Boolean]
|
|
393
|
+
#
|
|
394
|
+
# source://httpx//lib/httpx/connection.rb#109
|
|
395
|
+
def mergeable?(connection); end
|
|
396
|
+
|
|
397
|
+
# @return [Boolean]
|
|
398
|
+
#
|
|
399
|
+
# source://httpx//lib/httpx/connection.rb#287
|
|
400
|
+
def open?; end
|
|
401
|
+
|
|
402
|
+
# Returns the value of attribute options.
|
|
403
|
+
#
|
|
404
|
+
# source://httpx//lib/httpx/connection.rb#45
|
|
405
|
+
def options; end
|
|
406
|
+
|
|
407
|
+
# Returns the value of attribute origin.
|
|
408
|
+
#
|
|
409
|
+
# source://httpx//lib/httpx/connection.rb#45
|
|
410
|
+
def origin; end
|
|
411
|
+
|
|
412
|
+
# Returns the value of attribute origins.
|
|
413
|
+
#
|
|
414
|
+
# source://httpx//lib/httpx/connection.rb#45
|
|
415
|
+
def origins; end
|
|
416
|
+
|
|
417
|
+
# Returns the value of attribute pending.
|
|
418
|
+
#
|
|
419
|
+
# source://httpx//lib/httpx/connection.rb#45
|
|
420
|
+
def pending; end
|
|
421
|
+
|
|
422
|
+
# source://httpx//lib/httpx/connection.rb#146
|
|
423
|
+
def purge_pending(&block); end
|
|
424
|
+
|
|
425
|
+
# source://httpx//lib/httpx/connection.rb#291
|
|
426
|
+
def raise_timeout_error(interval); end
|
|
427
|
+
|
|
428
|
+
# source://httpx//lib/httpx/connection.rb#232
|
|
429
|
+
def reset; end
|
|
430
|
+
|
|
431
|
+
# source://httpx//lib/httpx/connection.rb#238
|
|
432
|
+
def send(request); end
|
|
433
|
+
|
|
434
|
+
# Returns the value of attribute state.
|
|
435
|
+
#
|
|
436
|
+
# source://httpx//lib/httpx/connection.rb#45
|
|
437
|
+
def state; end
|
|
438
|
+
|
|
439
|
+
# source://httpx//lib/httpx/connection.rb#260
|
|
440
|
+
def timeout; end
|
|
441
|
+
|
|
442
|
+
# Sets the attribute timers
|
|
443
|
+
#
|
|
444
|
+
# @param value the value to set the attribute timers to.
|
|
445
|
+
#
|
|
446
|
+
# source://httpx//lib/httpx/connection.rb#47
|
|
447
|
+
def timers=(_arg0); end
|
|
448
|
+
|
|
449
|
+
# source://httpx//lib/httpx/connection.rb#200
|
|
450
|
+
def to_io; end
|
|
451
|
+
|
|
452
|
+
# Returns the value of attribute type.
|
|
453
|
+
#
|
|
454
|
+
# source://httpx//lib/httpx/connection.rb#45
|
|
455
|
+
def type; end
|
|
456
|
+
|
|
457
|
+
private
|
|
458
|
+
|
|
459
|
+
# source://httpx//lib/httpx/connection.rb#452
|
|
460
|
+
def build_parser(protocol = T.unsafe(nil)); end
|
|
461
|
+
|
|
462
|
+
# source://httpx//lib/httpx/connection.rb#596
|
|
463
|
+
def build_socket(addrs = T.unsafe(nil)); end
|
|
464
|
+
|
|
465
|
+
# source://httpx//lib/httpx/connection.rb#299
|
|
466
|
+
def connect; end
|
|
467
|
+
|
|
468
|
+
# source://httpx//lib/httpx/connection.rb#307
|
|
469
|
+
def consume; end
|
|
470
|
+
|
|
471
|
+
# @return [Boolean]
|
|
472
|
+
#
|
|
473
|
+
# source://httpx//lib/httpx/connection.rb#303
|
|
474
|
+
def exhausted?; end
|
|
475
|
+
|
|
476
|
+
# source://httpx//lib/httpx/connection.rb#632
|
|
477
|
+
def handle_error(error); end
|
|
478
|
+
|
|
479
|
+
# source://httpx//lib/httpx/connection.rb#549
|
|
480
|
+
def handle_transition(nextstate); end
|
|
481
|
+
|
|
482
|
+
# source://httpx//lib/httpx/connection.rb#607
|
|
483
|
+
def on_error(error); end
|
|
484
|
+
|
|
485
|
+
# source://httpx//lib/httpx/connection.rb#437
|
|
486
|
+
def parser; end
|
|
487
|
+
|
|
488
|
+
# source://httpx//lib/httpx/connection.rb#590
|
|
489
|
+
def purge_after_closed; end
|
|
490
|
+
|
|
491
|
+
# source://httpx//lib/httpx/connection.rb#666
|
|
492
|
+
def read_timeout_callback(request, read_timeout, error_type = T.unsafe(nil)); end
|
|
493
|
+
|
|
494
|
+
# source://httpx//lib/httpx/connection.rb#431
|
|
495
|
+
def send_pending; end
|
|
496
|
+
|
|
497
|
+
# source://httpx//lib/httpx/connection.rb#441
|
|
498
|
+
def send_request_to_parser(request); end
|
|
499
|
+
|
|
500
|
+
# source://httpx//lib/httpx/connection.rb#458
|
|
501
|
+
def set_parser_callbacks(parser); end
|
|
502
|
+
|
|
503
|
+
# source://httpx//lib/httpx/connection.rb#641
|
|
504
|
+
def set_request_timeouts(request); end
|
|
505
|
+
|
|
506
|
+
# source://httpx//lib/httpx/connection.rb#523
|
|
507
|
+
def transition(nextstate); end
|
|
508
|
+
|
|
509
|
+
# source://httpx//lib/httpx/connection.rb#658
|
|
510
|
+
def write_timeout_callback(request, write_timeout); end
|
|
511
|
+
|
|
512
|
+
class << self
|
|
513
|
+
# source://httpx//lib/httpx/connection.rb#677
|
|
514
|
+
def parser_type(protocol); end
|
|
515
|
+
end
|
|
516
|
+
end
|
|
517
|
+
|
|
518
|
+
# source://httpx//lib/httpx/connection/http1.rb#6
|
|
519
|
+
class HTTPX::Connection::HTTP1
|
|
520
|
+
include ::HTTPX::Callbacks
|
|
521
|
+
include ::HTTPX::Loggable
|
|
522
|
+
|
|
523
|
+
# source://httpx//lib/httpx/connection/http1.rb#15
|
|
524
|
+
def initialize(buffer, options); end
|
|
525
|
+
|
|
526
|
+
# source://httpx//lib/httpx/connection/http1.rb#72
|
|
527
|
+
def <<(data); end
|
|
528
|
+
|
|
529
|
+
# source://httpx//lib/httpx/connection/http1.rb#52
|
|
530
|
+
def close; end
|
|
531
|
+
|
|
532
|
+
# source://httpx//lib/httpx/connection/http1.rb#88
|
|
533
|
+
def consume; end
|
|
534
|
+
|
|
535
|
+
# source://httpx//lib/httpx/connection/http1.rb#160
|
|
536
|
+
def dispatch; end
|
|
537
|
+
|
|
538
|
+
# source://httpx//lib/httpx/connection/http1.rb#61
|
|
539
|
+
def empty?; end
|
|
540
|
+
|
|
541
|
+
# source://httpx//lib/httpx/connection/http1.rb#57
|
|
542
|
+
def exhausted?; end
|
|
543
|
+
|
|
544
|
+
# source://httpx//lib/httpx/connection/http1.rb#190
|
|
545
|
+
def handle_error(ex); end
|
|
546
|
+
|
|
547
|
+
# source://httpx//lib/httpx/connection/http1.rb#31
|
|
548
|
+
def interests; end
|
|
549
|
+
|
|
550
|
+
# source://httpx//lib/httpx/connection/http1.rb#151
|
|
551
|
+
def on_complete; end
|
|
552
|
+
|
|
553
|
+
# source://httpx//lib/httpx/connection/http1.rb#135
|
|
554
|
+
def on_data(chunk); end
|
|
555
|
+
|
|
556
|
+
# source://httpx//lib/httpx/connection/http1.rb#107
|
|
557
|
+
def on_headers(h); end
|
|
558
|
+
|
|
559
|
+
# source://httpx//lib/httpx/connection/http1.rb#103
|
|
560
|
+
def on_start; end
|
|
561
|
+
|
|
562
|
+
# source://httpx//lib/httpx/connection/http1.rb#125
|
|
563
|
+
def on_trailers(h); end
|
|
564
|
+
|
|
565
|
+
# source://httpx//lib/httpx/connection/http1.rb#13
|
|
566
|
+
def pending; end
|
|
567
|
+
|
|
568
|
+
# source://httpx//lib/httpx/connection/http1.rb#213
|
|
569
|
+
def ping; end
|
|
570
|
+
|
|
571
|
+
# source://httpx//lib/httpx/connection/http1.rb#13
|
|
572
|
+
def requests; end
|
|
573
|
+
|
|
574
|
+
# source://httpx//lib/httpx/connection/http1.rb#46
|
|
575
|
+
def reset; end
|
|
576
|
+
|
|
577
|
+
# source://httpx//lib/httpx/connection/http1.rb#76
|
|
578
|
+
def send(request); end
|
|
579
|
+
|
|
580
|
+
# source://httpx//lib/httpx/connection/http1.rb#27
|
|
581
|
+
def timeout; end
|
|
582
|
+
|
|
583
|
+
private
|
|
584
|
+
|
|
585
|
+
# source://httpx//lib/httpx/connection/http1.rb#380
|
|
586
|
+
def capitalized(field); end
|
|
587
|
+
|
|
588
|
+
# source://httpx//lib/httpx/connection/http1.rb#256
|
|
589
|
+
def disable; end
|
|
590
|
+
|
|
591
|
+
# source://httpx//lib/httpx/connection/http1.rb#262
|
|
592
|
+
def disable_pipelining; end
|
|
593
|
+
|
|
594
|
+
# source://httpx//lib/httpx/connection/http1.rb#315
|
|
595
|
+
def handle(request); end
|
|
596
|
+
|
|
597
|
+
# source://httpx//lib/httpx/connection/http1.rb#342
|
|
598
|
+
def join_body(request); end
|
|
599
|
+
|
|
600
|
+
# source://httpx//lib/httpx/connection/http1.rb#332
|
|
601
|
+
def join_headers(request); end
|
|
602
|
+
|
|
603
|
+
# source://httpx//lib/httpx/connection/http1.rb#365
|
|
604
|
+
def join_headers2(headers); end
|
|
605
|
+
|
|
606
|
+
# source://httpx//lib/httpx/connection/http1.rb#328
|
|
607
|
+
def join_headline(request); end
|
|
608
|
+
|
|
609
|
+
# source://httpx//lib/httpx/connection/http1.rb#357
|
|
610
|
+
def join_trailers(request); end
|
|
611
|
+
|
|
612
|
+
# source://httpx//lib/httpx/connection/http1.rb#220
|
|
613
|
+
def manage_connection(response); end
|
|
614
|
+
|
|
615
|
+
# source://httpx//lib/httpx/connection/http1.rb#282
|
|
616
|
+
def set_protocol_headers(request); end
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
# source://httpx//lib/httpx/connection/http1.rb#11
|
|
620
|
+
HTTPX::Connection::HTTP1::CRLF = T.let(T.unsafe(nil), String)
|
|
621
|
+
|
|
622
|
+
# source://httpx//lib/httpx/connection/http1.rb#10
|
|
623
|
+
HTTPX::Connection::HTTP1::MAX_REQUESTS = T.let(T.unsafe(nil), Integer)
|
|
624
|
+
|
|
625
|
+
# source://httpx//lib/httpx/connection/http1.rb#375
|
|
626
|
+
HTTPX::Connection::HTTP1::UPCASED = T.let(T.unsafe(nil), Hash)
|
|
627
|
+
|
|
628
|
+
# source://httpx//lib/httpx/connection/http2.rb#7
|
|
629
|
+
class HTTPX::Connection::HTTP2
|
|
630
|
+
include ::HTTPX::Callbacks
|
|
631
|
+
include ::HTTPX::Loggable
|
|
632
|
+
|
|
633
|
+
# source://httpx//lib/httpx/connection/http2.rb#27
|
|
634
|
+
def initialize(buffer, options); end
|
|
635
|
+
|
|
636
|
+
# source://httpx//lib/httpx/connection/http2.rb#90
|
|
637
|
+
def <<(data); end
|
|
638
|
+
|
|
639
|
+
# source://httpx//lib/httpx/connection/http2.rb#94
|
|
640
|
+
def can_buffer_more_requests?; end
|
|
641
|
+
|
|
642
|
+
# source://httpx//lib/httpx/connection/http2.rb#75
|
|
643
|
+
def close; end
|
|
644
|
+
|
|
645
|
+
# source://httpx//lib/httpx/connection/http2.rb#122
|
|
646
|
+
def consume; end
|
|
647
|
+
|
|
648
|
+
# source://httpx//lib/httpx/connection/http2.rb#80
|
|
649
|
+
def empty?; end
|
|
650
|
+
|
|
651
|
+
# source://httpx//lib/httpx/connection/http2.rb#84
|
|
652
|
+
def exhausted?; end
|
|
653
|
+
|
|
654
|
+
# source://httpx//lib/httpx/connection/http2.rb#130
|
|
655
|
+
def handle_error(ex); end
|
|
656
|
+
|
|
657
|
+
# source://httpx//lib/httpx/connection/http2.rb#48
|
|
658
|
+
def interests; end
|
|
659
|
+
|
|
660
|
+
# source://httpx//lib/httpx/connection/http2.rb#25
|
|
661
|
+
def pending; end
|
|
662
|
+
|
|
663
|
+
# source://httpx//lib/httpx/connection/http2.rb#146
|
|
664
|
+
def ping; end
|
|
665
|
+
|
|
666
|
+
# source://httpx//lib/httpx/connection/http2.rb#173
|
|
667
|
+
def reset; end
|
|
668
|
+
|
|
669
|
+
# source://httpx//lib/httpx/connection/http2.rb#104
|
|
670
|
+
def send(request); end
|
|
671
|
+
|
|
672
|
+
# source://httpx//lib/httpx/connection/http2.rb#25
|
|
673
|
+
def streams; end
|
|
674
|
+
|
|
675
|
+
# source://httpx//lib/httpx/connection/http2.rb#42
|
|
676
|
+
def timeout; end
|
|
677
|
+
|
|
678
|
+
private
|
|
679
|
+
|
|
680
|
+
# source://httpx//lib/httpx/connection/http2.rb#161
|
|
681
|
+
def handle(request, stream); end
|
|
682
|
+
|
|
683
|
+
# source://httpx//lib/httpx/connection/http2.rb#197
|
|
684
|
+
def handle_stream(stream, request); end
|
|
685
|
+
|
|
686
|
+
# source://httpx//lib/httpx/connection/http2.rb#173
|
|
687
|
+
def init_connection; end
|
|
688
|
+
|
|
689
|
+
# source://httpx//lib/httpx/connection/http2.rb#243
|
|
690
|
+
def join_body(stream, request); end
|
|
691
|
+
|
|
692
|
+
# source://httpx//lib/httpx/connection/http2.rb#217
|
|
693
|
+
def join_headers(stream, request); end
|
|
694
|
+
|
|
695
|
+
# source://httpx//lib/httpx/connection/http2.rb#231
|
|
696
|
+
def join_trailers(stream, request); end
|
|
697
|
+
|
|
698
|
+
# source://httpx//lib/httpx/connection/http2.rb#392
|
|
699
|
+
def on_altsvc(origin, frame); end
|
|
700
|
+
|
|
701
|
+
# source://httpx//lib/httpx/connection/http2.rb#354
|
|
702
|
+
def on_close(_last_frame, error, _payload); end
|
|
703
|
+
|
|
704
|
+
# source://httpx//lib/httpx/connection/http2.rb#336
|
|
705
|
+
def on_frame(bytes); end
|
|
706
|
+
|
|
707
|
+
# source://httpx//lib/httpx/connection/http2.rb#383
|
|
708
|
+
def on_frame_received(frame); end
|
|
709
|
+
|
|
710
|
+
# source://httpx//lib/httpx/connection/http2.rb#374
|
|
711
|
+
def on_frame_sent(frame); end
|
|
712
|
+
|
|
713
|
+
# source://httpx//lib/httpx/connection/http2.rb#404
|
|
714
|
+
def on_origin(origin); end
|
|
715
|
+
|
|
716
|
+
# source://httpx//lib/httpx/connection/http2.rb#408
|
|
717
|
+
def on_pong(ping); end
|
|
718
|
+
|
|
719
|
+
# source://httpx//lib/httpx/connection/http2.rb#400
|
|
720
|
+
def on_promise(stream); end
|
|
721
|
+
|
|
722
|
+
# source://httpx//lib/httpx/connection/http2.rb#340
|
|
723
|
+
def on_settings(*_arg0); end
|
|
724
|
+
|
|
725
|
+
# source://httpx//lib/httpx/connection/http2.rb#306
|
|
726
|
+
def on_stream_close(stream, request, error); end
|
|
727
|
+
|
|
728
|
+
# source://httpx//lib/httpx/connection/http2.rb#295
|
|
729
|
+
def on_stream_data(stream, request, data); end
|
|
730
|
+
|
|
731
|
+
# source://httpx//lib/httpx/connection/http2.rb#268
|
|
732
|
+
def on_stream_headers(stream, request, h); end
|
|
733
|
+
|
|
734
|
+
# source://httpx//lib/httpx/connection/http2.rb#301
|
|
735
|
+
def on_stream_refuse(stream, request, error); end
|
|
736
|
+
|
|
737
|
+
# source://httpx//lib/httpx/connection/http2.rb#288
|
|
738
|
+
def on_stream_trailers(stream, response, h); end
|
|
739
|
+
|
|
740
|
+
# source://httpx//lib/httpx/connection/http2.rb#155
|
|
741
|
+
def send_pending; end
|
|
742
|
+
|
|
743
|
+
# source://httpx//lib/httpx/connection/http2.rb#208
|
|
744
|
+
def set_protocol_headers(request); end
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
# source://httpx//lib/httpx/connection/http2.rb#13
|
|
748
|
+
class HTTPX::Connection::HTTP2::Error < ::HTTPX::Error
|
|
749
|
+
# source://httpx//lib/httpx/connection/http2.rb#14
|
|
750
|
+
def initialize(id, code); end
|
|
751
|
+
end
|
|
752
|
+
|
|
753
|
+
# source://httpx//lib/httpx/connection/http2.rb#19
|
|
754
|
+
class HTTPX::Connection::HTTP2::GoawayError < ::HTTPX::Connection::HTTP2::Error
|
|
755
|
+
# source://httpx//lib/httpx/connection/http2.rb#20
|
|
756
|
+
def initialize; end
|
|
757
|
+
end
|
|
758
|
+
|
|
759
|
+
# source://httpx//lib/httpx/connection/http2.rb#11
|
|
760
|
+
HTTPX::Connection::HTTP2::MAX_CONCURRENT_REQUESTS = T.let(T.unsafe(nil), Integer)
|
|
761
|
+
|
|
762
|
+
# source://httpx//lib/httpx/errors.rb#8
|
|
763
|
+
class HTTPX::ConnectionError < ::HTTPX::Error; end
|
|
764
|
+
|
|
765
|
+
# source://httpx//lib/httpx/response.rb#322
|
|
766
|
+
class HTTPX::ContentType
|
|
767
|
+
# @return [ContentType] a new instance of ContentType
|
|
768
|
+
#
|
|
769
|
+
# source://httpx//lib/httpx/response.rb#326
|
|
770
|
+
def initialize(header_value); end
|
|
771
|
+
|
|
772
|
+
# source://httpx//lib/httpx/response.rb#337
|
|
773
|
+
def charset; end
|
|
774
|
+
|
|
775
|
+
# source://httpx//lib/httpx/response.rb#330
|
|
776
|
+
def mime_type; end
|
|
777
|
+
end
|
|
778
|
+
|
|
779
|
+
# source://httpx//lib/httpx/response.rb#324
|
|
780
|
+
HTTPX::ContentType::CHARSET_RE = T.let(T.unsafe(nil), Regexp)
|
|
781
|
+
|
|
782
|
+
# source://httpx//lib/httpx/response.rb#323
|
|
783
|
+
HTTPX::ContentType::MIME_TYPE_RE = T.let(T.unsafe(nil), Regexp)
|
|
784
|
+
|
|
785
|
+
# Represents a domain name ready for extracting its registered domain
|
|
786
|
+
# and TLD.
|
|
787
|
+
#
|
|
788
|
+
# source://httpx//lib/httpx/domain_name.rb#34
|
|
789
|
+
class HTTPX::DomainName
|
|
790
|
+
include ::Comparable
|
|
791
|
+
|
|
792
|
+
# Parses _hostname_ into a DomainName object. An IP address is also
|
|
793
|
+
# accepted. An IPv6 address may be enclosed in square brackets.
|
|
794
|
+
#
|
|
795
|
+
# @raise [ArgumentError]
|
|
796
|
+
# @return [DomainName] a new instance of DomainName
|
|
797
|
+
#
|
|
798
|
+
# source://httpx//lib/httpx/domain_name.rb#73
|
|
799
|
+
def initialize(hostname); end
|
|
800
|
+
|
|
801
|
+
# def ==(other)
|
|
802
|
+
# other = DomainName.new(other)
|
|
803
|
+
# other.hostname == @hostname
|
|
804
|
+
# end
|
|
805
|
+
#
|
|
806
|
+
# source://httpx//lib/httpx/domain_name.rb#134
|
|
807
|
+
def <=>(other); end
|
|
808
|
+
|
|
809
|
+
# Checks if the server represented by this domain is qualified to
|
|
810
|
+
# send and receive cookies with a domain attribute value of
|
|
811
|
+
# _domain_. A true value given as the second argument represents
|
|
812
|
+
# cookies without a domain attribute value, in which case only
|
|
813
|
+
# hostname equality is checked.
|
|
814
|
+
#
|
|
815
|
+
# @return [Boolean]
|
|
816
|
+
#
|
|
817
|
+
# source://httpx//lib/httpx/domain_name.rb#113
|
|
818
|
+
def cookie_domain?(domain, host_only = T.unsafe(nil)); end
|
|
819
|
+
|
|
820
|
+
# The least "universally original" domain part of this domain name.
|
|
821
|
+
# For example, "example.co.uk" for "www.sub.example.co.uk". This
|
|
822
|
+
# may be nil if the hostname does not have one, like when it is an
|
|
823
|
+
# IP address, an effective TLD or higher itself, or of a
|
|
824
|
+
# non-canonical domain.
|
|
825
|
+
#
|
|
826
|
+
# source://httpx//lib/httpx/domain_name.rb#52
|
|
827
|
+
def domain; end
|
|
828
|
+
|
|
829
|
+
# The full host name normalized, ASCII-ized and downcased using the
|
|
830
|
+
# Unicode NFC rules and the Punycode algorithm. If initialized with
|
|
831
|
+
# an IP address, the string representation of the IP address
|
|
832
|
+
# suitable for opening a connection to.
|
|
833
|
+
#
|
|
834
|
+
# source://httpx//lib/httpx/domain_name.rb#41
|
|
835
|
+
def hostname; end
|
|
836
|
+
|
|
837
|
+
class << self
|
|
838
|
+
# source://httpx//lib/httpx/domain_name.rb#57
|
|
839
|
+
def new(domain); end
|
|
840
|
+
|
|
841
|
+
# Normalizes a _domain_ using the Punycode algorithm as necessary.
|
|
842
|
+
# The result will be a downcased, ASCII-only string.
|
|
843
|
+
#
|
|
844
|
+
# source://httpx//lib/httpx/domain_name.rb#65
|
|
845
|
+
def normalize(domain); end
|
|
846
|
+
end
|
|
847
|
+
end
|
|
848
|
+
|
|
849
|
+
# source://httpx//lib/httpx/domain_name.rb#54
|
|
850
|
+
HTTPX::DomainName::DOT = T.let(T.unsafe(nil), String)
|
|
851
|
+
|
|
852
|
+
# source://httpx//lib/httpx.rb#27
|
|
853
|
+
HTTPX::EMPTY = T.let(T.unsafe(nil), Array)
|
|
854
|
+
|
|
855
|
+
# source://httpx//lib/httpx/errors.rb#4
|
|
856
|
+
class HTTPX::Error < ::StandardError; end
|
|
857
|
+
|
|
858
|
+
# source://httpx//lib/httpx/response.rb#345
|
|
859
|
+
class HTTPX::ErrorResponse
|
|
860
|
+
include ::HTTPX::Loggable
|
|
861
|
+
include ::HTTPX::ErrorResponsePatternMatchExtensions
|
|
862
|
+
extend ::Forwardable
|
|
863
|
+
|
|
864
|
+
# @return [ErrorResponse] a new instance of ErrorResponse
|
|
865
|
+
#
|
|
866
|
+
# source://httpx//lib/httpx/response.rb#353
|
|
867
|
+
def initialize(request, error, options); end
|
|
868
|
+
|
|
869
|
+
# source://httpx//lib/httpx/response.rb#377
|
|
870
|
+
def close; end
|
|
871
|
+
|
|
872
|
+
# Returns the value of attribute error.
|
|
873
|
+
#
|
|
874
|
+
# source://httpx//lib/httpx/response.rb#349
|
|
875
|
+
def error; end
|
|
876
|
+
|
|
877
|
+
# @return [Boolean]
|
|
878
|
+
#
|
|
879
|
+
# source://httpx//lib/httpx/response.rb#381
|
|
880
|
+
def finished?; end
|
|
881
|
+
|
|
882
|
+
# @raise [@error]
|
|
883
|
+
#
|
|
884
|
+
# source://httpx//lib/httpx/response.rb#385
|
|
885
|
+
def raise_for_status; end
|
|
886
|
+
|
|
887
|
+
# Returns the value of attribute request.
|
|
888
|
+
#
|
|
889
|
+
# source://httpx//lib/httpx/response.rb#349
|
|
890
|
+
def request; end
|
|
891
|
+
|
|
892
|
+
# Returns the value of attribute response.
|
|
893
|
+
#
|
|
894
|
+
# source://httpx//lib/httpx/response.rb#349
|
|
895
|
+
def response; end
|
|
896
|
+
|
|
897
|
+
# source://httpx//lib/httpx/response.rb#361
|
|
898
|
+
def status; end
|
|
899
|
+
|
|
900
|
+
# source://httpx//lib/httpx/response.rb#367
|
|
901
|
+
def to_s; end
|
|
902
|
+
|
|
903
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
904
|
+
def uri(*args, **_arg1, &block); end
|
|
905
|
+
end
|
|
906
|
+
|
|
907
|
+
# source://httpx//lib/httpx/pmatch_extensions.rb#14
|
|
908
|
+
module HTTPX::ErrorResponsePatternMatchExtensions
|
|
909
|
+
# source://httpx//lib/httpx/pmatch_extensions.rb#15
|
|
910
|
+
def deconstruct; end
|
|
911
|
+
|
|
912
|
+
# source://httpx//lib/httpx/pmatch_extensions.rb#19
|
|
913
|
+
def deconstruct_keys(_keys); end
|
|
914
|
+
end
|
|
915
|
+
|
|
916
|
+
# source://httpx//lib/httpx/errors.rb#63
|
|
917
|
+
class HTTPX::HTTPError < ::HTTPX::Error
|
|
918
|
+
# @return [HTTPError] a new instance of HTTPError
|
|
919
|
+
#
|
|
920
|
+
# source://httpx//lib/httpx/errors.rb#66
|
|
921
|
+
def initialize(response); end
|
|
922
|
+
|
|
923
|
+
# Returns the value of attribute response.
|
|
924
|
+
#
|
|
925
|
+
# source://httpx//lib/httpx/errors.rb#64
|
|
926
|
+
def response; end
|
|
927
|
+
|
|
928
|
+
# source://httpx//lib/httpx/errors.rb#71
|
|
929
|
+
def status; end
|
|
930
|
+
end
|
|
931
|
+
|
|
932
|
+
# source://httpx//lib/httpx/extensions.rb#83
|
|
933
|
+
module HTTPX::HashExtensions; end
|
|
934
|
+
|
|
935
|
+
# source://httpx//lib/httpx/headers.rb#4
|
|
936
|
+
class HTTPX::Headers
|
|
937
|
+
include ::HTTPX::HeadersPatternMatchExtensions
|
|
938
|
+
|
|
939
|
+
# @return [Headers] a new instance of Headers
|
|
940
|
+
#
|
|
941
|
+
# source://httpx//lib/httpx/headers.rb#13
|
|
942
|
+
def initialize(headers = T.unsafe(nil)); end
|
|
943
|
+
|
|
944
|
+
# source://httpx//lib/httpx/headers.rb#118
|
|
945
|
+
def ==(other); end
|
|
946
|
+
|
|
947
|
+
# returns the comma-separated values of the header field
|
|
948
|
+
# identified by +field+, or nil otherwise.
|
|
949
|
+
#
|
|
950
|
+
# source://httpx//lib/httpx/headers.rb#68
|
|
951
|
+
def [](field); end
|
|
952
|
+
|
|
953
|
+
# sets +value+ (if not nil) as single value for the +field+ header.
|
|
954
|
+
#
|
|
955
|
+
# source://httpx//lib/httpx/headers.rb#75
|
|
956
|
+
def []=(field, value); end
|
|
957
|
+
|
|
958
|
+
# adds additional +value+ to the existing, for header +field+.
|
|
959
|
+
#
|
|
960
|
+
# source://httpx//lib/httpx/headers.rb#90
|
|
961
|
+
def add(field, value); end
|
|
962
|
+
|
|
963
|
+
# adds additional +value+ to the existing, for header +field+.
|
|
964
|
+
# helper to be used when adding an header field as a value to another field
|
|
965
|
+
#
|
|
966
|
+
# h2_headers.add_header("vary", "accept-encoding")
|
|
967
|
+
# h2_headers["vary"] #=> "accept-encoding"
|
|
968
|
+
# h1_headers.add_header("vary", "accept-encoding")
|
|
969
|
+
# h1_headers["vary"] #=> "Accept-Encoding"
|
|
970
|
+
#
|
|
971
|
+
# source://httpx//lib/httpx/headers.rb#90
|
|
972
|
+
def add_header(field, value); end
|
|
973
|
+
|
|
974
|
+
# deletes all values associated with +field+ header.
|
|
975
|
+
#
|
|
976
|
+
# source://httpx//lib/httpx/headers.rb#83
|
|
977
|
+
def delete(field); end
|
|
978
|
+
|
|
979
|
+
# returns the enumerable headers store in pairs of header field + the values in
|
|
980
|
+
# the comma-separated string format
|
|
981
|
+
#
|
|
982
|
+
# source://httpx//lib/httpx/headers.rb#106
|
|
983
|
+
def each(extra_headers = T.unsafe(nil)); end
|
|
984
|
+
|
|
985
|
+
# freezes the headers hash
|
|
986
|
+
#
|
|
987
|
+
# source://httpx//lib/httpx/headers.rb#37
|
|
988
|
+
def freeze; end
|
|
989
|
+
|
|
990
|
+
# returns the values for the +field+ header in array format.
|
|
991
|
+
# This method is more internal, and for this reason doesn't try
|
|
992
|
+
# to "correct" the user input, i.e. it doesn't downcase the key.
|
|
993
|
+
#
|
|
994
|
+
# source://httpx//lib/httpx/headers.rb#156
|
|
995
|
+
def get(field); end
|
|
996
|
+
|
|
997
|
+
# :nocov:
|
|
998
|
+
#
|
|
999
|
+
# source://httpx//lib/httpx/headers.rb#139
|
|
1000
|
+
def inspect; end
|
|
1001
|
+
|
|
1002
|
+
# this is internal API and doesn't abide to other public API
|
|
1003
|
+
# guarantees, like downcasing strings.
|
|
1004
|
+
# Please do not use this outside of core!
|
|
1005
|
+
#
|
|
1006
|
+
# @return [Boolean]
|
|
1007
|
+
#
|
|
1008
|
+
# source://httpx//lib/httpx/headers.rb#148
|
|
1009
|
+
def key?(downcased_key); end
|
|
1010
|
+
|
|
1011
|
+
# merges headers with another header-quack.
|
|
1012
|
+
# the merge rule is, if the header already exists,
|
|
1013
|
+
# ignore what the +other+ headers has. Otherwise, set
|
|
1014
|
+
#
|
|
1015
|
+
# source://httpx//lib/httpx/headers.rb#57
|
|
1016
|
+
def merge(other); end
|
|
1017
|
+
|
|
1018
|
+
# @return [Boolean]
|
|
1019
|
+
#
|
|
1020
|
+
# source://httpx//lib/httpx/headers.rb#42
|
|
1021
|
+
def same_headers?(headers); end
|
|
1022
|
+
|
|
1023
|
+
# the headers store in array of pairs format
|
|
1024
|
+
#
|
|
1025
|
+
# source://httpx//lib/httpx/headers.rb#129
|
|
1026
|
+
def to_a; end
|
|
1027
|
+
|
|
1028
|
+
# the headers store in Hash format
|
|
1029
|
+
#
|
|
1030
|
+
# source://httpx//lib/httpx/headers.rb#123
|
|
1031
|
+
def to_h; end
|
|
1032
|
+
|
|
1033
|
+
# the headers store in Hash format
|
|
1034
|
+
#
|
|
1035
|
+
# source://httpx//lib/httpx/headers.rb#123
|
|
1036
|
+
def to_hash; end
|
|
1037
|
+
|
|
1038
|
+
# headers as string
|
|
1039
|
+
#
|
|
1040
|
+
# source://httpx//lib/httpx/headers.rb#134
|
|
1041
|
+
def to_s; end
|
|
1042
|
+
|
|
1043
|
+
private
|
|
1044
|
+
|
|
1045
|
+
# source://httpx//lib/httpx/headers.rb#162
|
|
1046
|
+
def array_value(value); end
|
|
1047
|
+
|
|
1048
|
+
# source://httpx//lib/httpx/headers.rb#171
|
|
1049
|
+
def downcased(field); end
|
|
1050
|
+
|
|
1051
|
+
# cloned initialization
|
|
1052
|
+
#
|
|
1053
|
+
# source://httpx//lib/httpx/headers.rb#25
|
|
1054
|
+
def initialize_clone(orig); end
|
|
1055
|
+
|
|
1056
|
+
# dupped initialization
|
|
1057
|
+
#
|
|
1058
|
+
# source://httpx//lib/httpx/headers.rb#31
|
|
1059
|
+
def initialize_dup(orig); end
|
|
1060
|
+
|
|
1061
|
+
class << self
|
|
1062
|
+
# source://httpx//lib/httpx/headers.rb#6
|
|
1063
|
+
def new(headers = T.unsafe(nil)); end
|
|
1064
|
+
end
|
|
1065
|
+
end
|
|
1066
|
+
|
|
1067
|
+
# source://httpx//lib/httpx/pmatch_extensions.rb#24
|
|
1068
|
+
module HTTPX::HeadersPatternMatchExtensions
|
|
1069
|
+
# source://httpx//lib/httpx/pmatch_extensions.rb#25
|
|
1070
|
+
def deconstruct; end
|
|
1071
|
+
end
|
|
1072
|
+
|
|
1073
|
+
# source://httpx//lib/httpx/extensions.rb#136
|
|
1074
|
+
module HTTPX::IOExtensions; end
|
|
1075
|
+
|
|
1076
|
+
# source://httpx//lib/httpx/io/ssl.rb#7
|
|
1077
|
+
HTTPX::IPRegex = T.let(T.unsafe(nil), Regexp)
|
|
1078
|
+
|
|
1079
|
+
# source://httpx//lib/httpx/loggable.rb#4
|
|
1080
|
+
module HTTPX::Loggable
|
|
1081
|
+
# source://httpx//lib/httpx/loggable.rb#16
|
|
1082
|
+
def log(level: T.unsafe(nil), color: T.unsafe(nil), &msg); end
|
|
1083
|
+
|
|
1084
|
+
# source://httpx//lib/httpx/loggable.rb#29
|
|
1085
|
+
def log_exception(ex, level: T.unsafe(nil), color: T.unsafe(nil)); end
|
|
1086
|
+
end
|
|
1087
|
+
|
|
1088
|
+
# source://httpx//lib/httpx/loggable.rb#5
|
|
1089
|
+
HTTPX::Loggable::COLORS = T.let(T.unsafe(nil), Hash)
|
|
1090
|
+
|
|
1091
|
+
# source://httpx//lib/httpx/errors.rb#76
|
|
1092
|
+
class HTTPX::MisdirectedRequestError < ::HTTPX::HTTPError; end
|
|
1093
|
+
|
|
1094
|
+
# source://httpx//lib/httpx/errors.rb#53
|
|
1095
|
+
class HTTPX::NativeResolveError < ::HTTPX::ResolveError
|
|
1096
|
+
# @return [NativeResolveError] a new instance of NativeResolveError
|
|
1097
|
+
#
|
|
1098
|
+
# source://httpx//lib/httpx/errors.rb#56
|
|
1099
|
+
def initialize(connection, host, message = T.unsafe(nil)); end
|
|
1100
|
+
|
|
1101
|
+
# Returns the value of attribute connection.
|
|
1102
|
+
#
|
|
1103
|
+
# source://httpx//lib/httpx/errors.rb#54
|
|
1104
|
+
def connection; end
|
|
1105
|
+
|
|
1106
|
+
# Returns the value of attribute host.
|
|
1107
|
+
#
|
|
1108
|
+
# source://httpx//lib/httpx/errors.rb#54
|
|
1109
|
+
def host; end
|
|
1110
|
+
end
|
|
1111
|
+
|
|
1112
|
+
# source://httpx//lib/httpx/extensions.rb#57
|
|
1113
|
+
module HTTPX::NumericExtensions; end
|
|
1114
|
+
|
|
1115
|
+
# source://httpx//lib/httpx/options.rb#6
|
|
1116
|
+
class HTTPX::Options
|
|
1117
|
+
# @return [Options] a new instance of Options
|
|
1118
|
+
#
|
|
1119
|
+
# source://httpx//lib/httpx/options.rb#133
|
|
1120
|
+
def initialize(options = T.unsafe(nil)); end
|
|
1121
|
+
|
|
1122
|
+
# source://httpx//lib/httpx/options.rb#230
|
|
1123
|
+
def ==(other); end
|
|
1124
|
+
|
|
1125
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1126
|
+
def addresses; end
|
|
1127
|
+
|
|
1128
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1129
|
+
def base_path; end
|
|
1130
|
+
|
|
1131
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1132
|
+
def body; end
|
|
1133
|
+
|
|
1134
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1135
|
+
def body_threshold_size; end
|
|
1136
|
+
|
|
1137
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1138
|
+
def buffer_size; end
|
|
1139
|
+
|
|
1140
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1141
|
+
def connection_class; end
|
|
1142
|
+
|
|
1143
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1144
|
+
def debug; end
|
|
1145
|
+
|
|
1146
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1147
|
+
def debug_level; end
|
|
1148
|
+
|
|
1149
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1150
|
+
def fallback_protocol; end
|
|
1151
|
+
|
|
1152
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1153
|
+
def form; end
|
|
1154
|
+
|
|
1155
|
+
# source://httpx//lib/httpx/options.rb#138
|
|
1156
|
+
def freeze; end
|
|
1157
|
+
|
|
1158
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1159
|
+
def headers; end
|
|
1160
|
+
|
|
1161
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1162
|
+
def headers_class; end
|
|
1163
|
+
|
|
1164
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1165
|
+
def http2_settings; end
|
|
1166
|
+
|
|
1167
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1168
|
+
def io; end
|
|
1169
|
+
|
|
1170
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1171
|
+
def ip_families; end
|
|
1172
|
+
|
|
1173
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1174
|
+
def json; end
|
|
1175
|
+
|
|
1176
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1177
|
+
def max_concurrent_requests; end
|
|
1178
|
+
|
|
1179
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1180
|
+
def max_requests; end
|
|
1181
|
+
|
|
1182
|
+
# @raise [ArgumentError]
|
|
1183
|
+
#
|
|
1184
|
+
# source://httpx//lib/httpx/options.rb#246
|
|
1185
|
+
def merge(other); end
|
|
1186
|
+
|
|
1187
|
+
# source://httpx//lib/httpx/options.rb#209
|
|
1188
|
+
def option_addresses(value); end
|
|
1189
|
+
|
|
1190
|
+
# source://httpx//lib/httpx/options.rb#151
|
|
1191
|
+
def option_base_path(value); end
|
|
1192
|
+
|
|
1193
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1194
|
+
def option_body(v); end
|
|
1195
|
+
|
|
1196
|
+
# source://httpx//lib/httpx/options.rb#198
|
|
1197
|
+
def option_body_threshold_size(value); end
|
|
1198
|
+
|
|
1199
|
+
# @raise [TypeError]
|
|
1200
|
+
#
|
|
1201
|
+
# source://httpx//lib/httpx/options.rb#190
|
|
1202
|
+
def option_buffer_size(value); end
|
|
1203
|
+
|
|
1204
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1205
|
+
def option_connection_class(v); end
|
|
1206
|
+
|
|
1207
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1208
|
+
def option_debug(v); end
|
|
1209
|
+
|
|
1210
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1211
|
+
def option_debug_level(v); end
|
|
1212
|
+
|
|
1213
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1214
|
+
def option_fallback_protocol(v); end
|
|
1215
|
+
|
|
1216
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1217
|
+
def option_form(v); end
|
|
1218
|
+
|
|
1219
|
+
# source://httpx//lib/httpx/options.rb#155
|
|
1220
|
+
def option_headers(value); end
|
|
1221
|
+
|
|
1222
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1223
|
+
def option_headers_class(v); end
|
|
1224
|
+
|
|
1225
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1226
|
+
def option_http2_settings(v); end
|
|
1227
|
+
|
|
1228
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1229
|
+
def option_io(v); end
|
|
1230
|
+
|
|
1231
|
+
# source://httpx//lib/httpx/options.rb#213
|
|
1232
|
+
def option_ip_families(value); end
|
|
1233
|
+
|
|
1234
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1235
|
+
def option_json(v); end
|
|
1236
|
+
|
|
1237
|
+
# @raise [TypeError]
|
|
1238
|
+
#
|
|
1239
|
+
# source://httpx//lib/httpx/options.rb#170
|
|
1240
|
+
def option_max_concurrent_requests(value); end
|
|
1241
|
+
|
|
1242
|
+
# @raise [TypeError]
|
|
1243
|
+
#
|
|
1244
|
+
# source://httpx//lib/httpx/options.rb#176
|
|
1245
|
+
def option_max_requests(value); end
|
|
1246
|
+
|
|
1247
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1248
|
+
def option_options_class(v); end
|
|
1249
|
+
|
|
1250
|
+
# source://httpx//lib/httpx/options.rb#147
|
|
1251
|
+
def option_origin(value); end
|
|
1252
|
+
|
|
1253
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1254
|
+
def option_params(v); end
|
|
1255
|
+
|
|
1256
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1257
|
+
def option_persistent(v); end
|
|
1258
|
+
|
|
1259
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1260
|
+
def option_request_body_class(v); end
|
|
1261
|
+
|
|
1262
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1263
|
+
def option_request_class(v); end
|
|
1264
|
+
|
|
1265
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1266
|
+
def option_resolver_class(v); end
|
|
1267
|
+
|
|
1268
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1269
|
+
def option_resolver_options(v); end
|
|
1270
|
+
|
|
1271
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1272
|
+
def option_response_body_class(v); end
|
|
1273
|
+
|
|
1274
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1275
|
+
def option_response_class(v); end
|
|
1276
|
+
|
|
1277
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1278
|
+
def option_ssl(v); end
|
|
1279
|
+
|
|
1280
|
+
# source://httpx//lib/httpx/options.rb#159
|
|
1281
|
+
def option_timeout(value); end
|
|
1282
|
+
|
|
1283
|
+
# @raise [TypeError]
|
|
1284
|
+
#
|
|
1285
|
+
# source://httpx//lib/httpx/options.rb#202
|
|
1286
|
+
def option_transport(value); end
|
|
1287
|
+
|
|
1288
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1289
|
+
def option_transport_options(v); end
|
|
1290
|
+
|
|
1291
|
+
# @raise [TypeError]
|
|
1292
|
+
#
|
|
1293
|
+
# source://httpx//lib/httpx/options.rb#182
|
|
1294
|
+
def option_window_size(value); end
|
|
1295
|
+
|
|
1296
|
+
# source://httpx//lib/httpx/options.rb#107
|
|
1297
|
+
def option_xml(v); end
|
|
1298
|
+
|
|
1299
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1300
|
+
def options_class; end
|
|
1301
|
+
|
|
1302
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1303
|
+
def origin; end
|
|
1304
|
+
|
|
1305
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1306
|
+
def params; end
|
|
1307
|
+
|
|
1308
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1309
|
+
def persistent; end
|
|
1310
|
+
|
|
1311
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1312
|
+
def request_body_class; end
|
|
1313
|
+
|
|
1314
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1315
|
+
def request_class; end
|
|
1316
|
+
|
|
1317
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1318
|
+
def resolver_class; end
|
|
1319
|
+
|
|
1320
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1321
|
+
def resolver_options; end
|
|
1322
|
+
|
|
1323
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1324
|
+
def response_body_class; end
|
|
1325
|
+
|
|
1326
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1327
|
+
def response_class; end
|
|
1328
|
+
|
|
1329
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1330
|
+
def ssl; end
|
|
1331
|
+
|
|
1332
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1333
|
+
def timeout; end
|
|
1334
|
+
|
|
1335
|
+
# source://httpx//lib/httpx/options.rb#267
|
|
1336
|
+
def to_hash; end
|
|
1337
|
+
|
|
1338
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1339
|
+
def transport; end
|
|
1340
|
+
|
|
1341
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1342
|
+
def transport_options; end
|
|
1343
|
+
|
|
1344
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1345
|
+
def window_size; end
|
|
1346
|
+
|
|
1347
|
+
# source://httpx//lib/httpx/options.rb#101
|
|
1348
|
+
def xml; end
|
|
1349
|
+
|
|
1350
|
+
private
|
|
1351
|
+
|
|
1352
|
+
# source://httpx//lib/httpx/options.rb#296
|
|
1353
|
+
def __initialize__(options = T.unsafe(nil)); end
|
|
1354
|
+
|
|
1355
|
+
# source://httpx//lib/httpx/options.rb#274
|
|
1356
|
+
def initialize_dup(other); end
|
|
1357
|
+
|
|
1358
|
+
class << self
|
|
1359
|
+
# source://httpx//lib/httpx/options.rb#104
|
|
1360
|
+
def def_option(optname, *args, &block); end
|
|
1361
|
+
|
|
1362
|
+
# source://httpx//lib/httpx/options.rb#115
|
|
1363
|
+
def deprecated_def_option(optname, layout = T.unsafe(nil), &interpreter); end
|
|
1364
|
+
|
|
1365
|
+
# @private
|
|
1366
|
+
#
|
|
1367
|
+
# source://httpx//lib/httpx/options.rb#94
|
|
1368
|
+
def method_added(meth); end
|
|
1369
|
+
|
|
1370
|
+
# source://httpx//lib/httpx/options.rb#86
|
|
1371
|
+
def new(options = T.unsafe(nil)); end
|
|
1372
|
+
end
|
|
1373
|
+
end
|
|
1374
|
+
|
|
1375
|
+
# source://httpx//lib/httpx/options.rb#7
|
|
1376
|
+
HTTPX::Options::BUFFER_SIZE = T.let(T.unsafe(nil), Integer)
|
|
1377
|
+
|
|
1378
|
+
# source://httpx//lib/httpx/options.rb#10
|
|
1379
|
+
HTTPX::Options::CONNECT_TIMEOUT = T.let(T.unsafe(nil), Integer)
|
|
1380
|
+
|
|
1381
|
+
# source://httpx//lib/httpx/options.rb#28
|
|
1382
|
+
HTTPX::Options::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
|
|
1383
|
+
|
|
1384
|
+
# source://httpx//lib/httpx/options.rb#12
|
|
1385
|
+
HTTPX::Options::KEEP_ALIVE_TIMEOUT = T.let(T.unsafe(nil), Integer)
|
|
1386
|
+
|
|
1387
|
+
# 112K
|
|
1388
|
+
#
|
|
1389
|
+
# source://httpx//lib/httpx/options.rb#9
|
|
1390
|
+
HTTPX::Options::MAX_BODY_THRESHOLD_SIZE = T.let(T.unsafe(nil), Integer)
|
|
1391
|
+
|
|
1392
|
+
# source://httpx//lib/httpx/options.rb#11
|
|
1393
|
+
HTTPX::Options::OPERATION_TIMEOUT = T.let(T.unsafe(nil), Integer)
|
|
1394
|
+
|
|
1395
|
+
# source://httpx//lib/httpx/options.rb#14
|
|
1396
|
+
HTTPX::Options::READ_TIMEOUT = T.let(T.unsafe(nil), Float)
|
|
1397
|
+
|
|
1398
|
+
# source://httpx//lib/httpx/options.rb#227
|
|
1399
|
+
HTTPX::Options::REQUEST_IVARS = T.let(T.unsafe(nil), Array)
|
|
1400
|
+
|
|
1401
|
+
# source://httpx//lib/httpx/options.rb#14
|
|
1402
|
+
HTTPX::Options::REQUEST_TIMEOUT = T.let(T.unsafe(nil), Float)
|
|
1403
|
+
|
|
1404
|
+
# source://httpx//lib/httpx/options.rb#13
|
|
1405
|
+
HTTPX::Options::SETTINGS_TIMEOUT = T.let(T.unsafe(nil), Integer)
|
|
1406
|
+
|
|
1407
|
+
# 16K
|
|
1408
|
+
#
|
|
1409
|
+
# source://httpx//lib/httpx/options.rb#8
|
|
1410
|
+
HTTPX::Options::WINDOW_SIZE = T.let(T.unsafe(nil), Integer)
|
|
1411
|
+
|
|
1412
|
+
# source://httpx//lib/httpx/options.rb#14
|
|
1413
|
+
HTTPX::Options::WRITE_TIMEOUT = T.let(T.unsafe(nil), Float)
|
|
1414
|
+
|
|
1415
|
+
# source://httpx//lib/httpx/parser/http1.rb#4
|
|
1416
|
+
module HTTPX::Parser; end
|
|
1417
|
+
|
|
1418
|
+
# source://httpx//lib/httpx/parser/http1.rb#5
|
|
1419
|
+
class HTTPX::Parser::Error < ::HTTPX::Error; end
|
|
1420
|
+
|
|
1421
|
+
# source://httpx//lib/httpx/parser/http1.rb#7
|
|
1422
|
+
class HTTPX::Parser::HTTP1
|
|
1423
|
+
# @return [HTTP1] a new instance of HTTP1
|
|
1424
|
+
#
|
|
1425
|
+
# source://httpx//lib/httpx/parser/http1.rb#12
|
|
1426
|
+
def initialize(observer); end
|
|
1427
|
+
|
|
1428
|
+
# source://httpx//lib/httpx/parser/http1.rb#19
|
|
1429
|
+
def <<(chunk); end
|
|
1430
|
+
|
|
1431
|
+
# Returns the value of attribute headers.
|
|
1432
|
+
#
|
|
1433
|
+
# source://httpx//lib/httpx/parser/http1.rb#10
|
|
1434
|
+
def headers; end
|
|
1435
|
+
|
|
1436
|
+
# Returns the value of attribute http_version.
|
|
1437
|
+
#
|
|
1438
|
+
# source://httpx//lib/httpx/parser/http1.rb#10
|
|
1439
|
+
def http_version; end
|
|
1440
|
+
|
|
1441
|
+
# source://httpx//lib/httpx/parser/http1.rb#24
|
|
1442
|
+
def reset!; end
|
|
1443
|
+
|
|
1444
|
+
# Returns the value of attribute status_code.
|
|
1445
|
+
#
|
|
1446
|
+
# source://httpx//lib/httpx/parser/http1.rb#10
|
|
1447
|
+
def status_code; end
|
|
1448
|
+
|
|
1449
|
+
# @return [Boolean]
|
|
1450
|
+
#
|
|
1451
|
+
# source://httpx//lib/httpx/parser/http1.rb#31
|
|
1452
|
+
def upgrade?; end
|
|
1453
|
+
|
|
1454
|
+
# source://httpx//lib/httpx/parser/http1.rb#35
|
|
1455
|
+
def upgrade_data; end
|
|
1456
|
+
|
|
1457
|
+
private
|
|
1458
|
+
|
|
1459
|
+
# source://httpx//lib/httpx/parser/http1.rb#169
|
|
1460
|
+
def nextstate(state); end
|
|
1461
|
+
|
|
1462
|
+
# @return [Boolean]
|
|
1463
|
+
#
|
|
1464
|
+
# source://httpx//lib/httpx/parser/http1.rb#159
|
|
1465
|
+
def no_more_data?; end
|
|
1466
|
+
|
|
1467
|
+
# source://httpx//lib/httpx/parser/http1.rb#41
|
|
1468
|
+
def parse; end
|
|
1469
|
+
|
|
1470
|
+
# source://httpx//lib/httpx/parser/http1.rb#115
|
|
1471
|
+
def parse_data; end
|
|
1472
|
+
|
|
1473
|
+
# source://httpx//lib/httpx/parser/http1.rb#73
|
|
1474
|
+
def parse_headers; end
|
|
1475
|
+
|
|
1476
|
+
# @raise [Error]
|
|
1477
|
+
#
|
|
1478
|
+
# source://httpx//lib/httpx/parser/http1.rb#56
|
|
1479
|
+
def parse_headline; end
|
|
1480
|
+
|
|
1481
|
+
# source://httpx//lib/httpx/parser/http1.rb#140
|
|
1482
|
+
def prepare_data(headers); end
|
|
1483
|
+
end
|
|
1484
|
+
|
|
1485
|
+
# source://httpx//lib/httpx/parser/http1.rb#8
|
|
1486
|
+
HTTPX::Parser::HTTP1::VERSIONS = T.let(T.unsafe(nil), Array)
|
|
1487
|
+
|
|
1488
|
+
# All plugins should be stored under this module/namespace. Can register and load
|
|
1489
|
+
# plugins.
|
|
1490
|
+
#
|
|
1491
|
+
# source://httpx//lib/httpx.rb#32
|
|
1492
|
+
module HTTPX::Plugins
|
|
1493
|
+
class << self
|
|
1494
|
+
# Loads a plugin based on a name. If the plugin hasn't been loaded, tries to load
|
|
1495
|
+
# it from the load path under "httpx/plugins/" directory.
|
|
1496
|
+
#
|
|
1497
|
+
# source://httpx//lib/httpx.rb#39
|
|
1498
|
+
def load_plugin(name); end
|
|
1499
|
+
|
|
1500
|
+
# Registers a plugin (+mod+) in the central store indexed by +name+.
|
|
1501
|
+
#
|
|
1502
|
+
# source://httpx//lib/httpx.rb#50
|
|
1503
|
+
def register_plugin(name, mod); end
|
|
1504
|
+
end
|
|
1505
|
+
end
|
|
1506
|
+
|
|
1507
|
+
# source://httpx//lib/httpx/pool.rb#9
|
|
1508
|
+
class HTTPX::Pool
|
|
1509
|
+
extend ::Forwardable
|
|
1510
|
+
|
|
1511
|
+
# @return [Pool] a new instance of Pool
|
|
1512
|
+
#
|
|
1513
|
+
# source://httpx//lib/httpx/pool.rb#15
|
|
1514
|
+
def initialize; end
|
|
1515
|
+
|
|
1516
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1517
|
+
def after(*args, **_arg1, &block); end
|
|
1518
|
+
|
|
1519
|
+
# source://httpx//lib/httpx/pool.rb#51
|
|
1520
|
+
def close(connections = T.unsafe(nil)); end
|
|
1521
|
+
|
|
1522
|
+
# source://httpx//lib/httpx/pool.rb#88
|
|
1523
|
+
def deactivate(connections); end
|
|
1524
|
+
|
|
1525
|
+
# @return [Boolean]
|
|
1526
|
+
#
|
|
1527
|
+
# source://httpx//lib/httpx/pool.rb#23
|
|
1528
|
+
def empty?; end
|
|
1529
|
+
|
|
1530
|
+
# opens a connection to the IP reachable through +uri+.
|
|
1531
|
+
# Many hostnames are reachable through the same IP, so we try to
|
|
1532
|
+
# maximize pipelining by opening as few connections as possible.
|
|
1533
|
+
#
|
|
1534
|
+
# source://httpx//lib/httpx/pool.rb#99
|
|
1535
|
+
def find_connection(uri, options); end
|
|
1536
|
+
|
|
1537
|
+
# source://httpx//lib/httpx/pool.rb#74
|
|
1538
|
+
def init_connection(connection, _options); end
|
|
1539
|
+
|
|
1540
|
+
# source://httpx//lib/httpx/pool.rb#27
|
|
1541
|
+
def next_tick; end
|
|
1542
|
+
|
|
1543
|
+
private
|
|
1544
|
+
|
|
1545
|
+
# source://httpx//lib/httpx/pool.rb#228
|
|
1546
|
+
def coalesce_connections(conn1, conn2); end
|
|
1547
|
+
|
|
1548
|
+
# source://httpx//lib/httpx/pool.rb#224
|
|
1549
|
+
def deselect_connection(connection); end
|
|
1550
|
+
|
|
1551
|
+
# source://httpx//lib/httpx/pool.rb#244
|
|
1552
|
+
def find_resolver_for(connection); end
|
|
1553
|
+
|
|
1554
|
+
# source://httpx//lib/httpx/pool.rb#236
|
|
1555
|
+
def next_timeout; end
|
|
1556
|
+
|
|
1557
|
+
# source://httpx//lib/httpx/pool.rb#193
|
|
1558
|
+
def on_resolver_close(resolver); end
|
|
1559
|
+
|
|
1560
|
+
# source://httpx//lib/httpx/pool.rb#170
|
|
1561
|
+
def on_resolver_connection(connection); end
|
|
1562
|
+
|
|
1563
|
+
# source://httpx//lib/httpx/pool.rb#187
|
|
1564
|
+
def on_resolver_error(connection, error); end
|
|
1565
|
+
|
|
1566
|
+
# source://httpx//lib/httpx/pool.rb#203
|
|
1567
|
+
def register_connection(connection); end
|
|
1568
|
+
|
|
1569
|
+
# source://httpx//lib/httpx/pool.rb#107
|
|
1570
|
+
def resolve_connection(connection); end
|
|
1571
|
+
|
|
1572
|
+
# source://httpx//lib/httpx/pool.rb#220
|
|
1573
|
+
def select_connection(connection); end
|
|
1574
|
+
|
|
1575
|
+
# source://httpx//lib/httpx/pool.rb#132
|
|
1576
|
+
def try_clone_connection(connection, family); end
|
|
1577
|
+
|
|
1578
|
+
# source://httpx//lib/httpx/pool.rb#215
|
|
1579
|
+
def unregister_connection(connection); end
|
|
1580
|
+
end
|
|
1581
|
+
|
|
1582
|
+
# source://httpx//lib/httpx/punycode.rb#66
|
|
1583
|
+
module HTTPX::Punycode
|
|
1584
|
+
private
|
|
1585
|
+
|
|
1586
|
+
# source://httpx//lib/httpx/punycode.rb#211
|
|
1587
|
+
def decode(string); end
|
|
1588
|
+
|
|
1589
|
+
# source://httpx//lib/httpx/punycode.rb#296
|
|
1590
|
+
def decode_hostname(hostname); end
|
|
1591
|
+
|
|
1592
|
+
# source://httpx//lib/httpx/punycode.rb#116
|
|
1593
|
+
def encode(string); end
|
|
1594
|
+
|
|
1595
|
+
# source://httpx//lib/httpx/punycode.rb#198
|
|
1596
|
+
def encode_hostname(hostname); end
|
|
1597
|
+
|
|
1598
|
+
class << self
|
|
1599
|
+
# source://httpx//lib/httpx/punycode.rb#211
|
|
1600
|
+
def decode(string); end
|
|
1601
|
+
|
|
1602
|
+
# source://httpx//lib/httpx/punycode.rb#296
|
|
1603
|
+
def decode_hostname(hostname); end
|
|
1604
|
+
|
|
1605
|
+
# source://httpx//lib/httpx/punycode.rb#116
|
|
1606
|
+
def encode(string); end
|
|
1607
|
+
|
|
1608
|
+
# source://httpx//lib/httpx/punycode.rb#198
|
|
1609
|
+
def encode_hostname(hostname); end
|
|
1610
|
+
end
|
|
1611
|
+
end
|
|
1612
|
+
|
|
1613
|
+
# source://httpx//lib/httpx/punycode.rb#110
|
|
1614
|
+
class HTTPX::Punycode::ArgumentError < ::ArgumentError; end
|
|
1615
|
+
|
|
1616
|
+
# source://httpx//lib/httpx/punycode.rb#67
|
|
1617
|
+
HTTPX::Punycode::BASE = T.let(T.unsafe(nil), Integer)
|
|
1618
|
+
|
|
1619
|
+
# source://httpx//lib/httpx/punycode.rb#111
|
|
1620
|
+
class HTTPX::Punycode::BufferOverflowError < ::HTTPX::Punycode::ArgumentError; end
|
|
1621
|
+
|
|
1622
|
+
# source://httpx//lib/httpx/punycode.rb#79
|
|
1623
|
+
HTTPX::Punycode::CUTOFF = T.let(T.unsafe(nil), Integer)
|
|
1624
|
+
|
|
1625
|
+
# source://httpx//lib/httpx/punycode.rb#71
|
|
1626
|
+
HTTPX::Punycode::DAMP = T.let(T.unsafe(nil), Integer)
|
|
1627
|
+
|
|
1628
|
+
# source://httpx//lib/httpx/punycode.rb#86
|
|
1629
|
+
HTTPX::Punycode::DECODE_DIGIT = T.let(T.unsafe(nil), Hash)
|
|
1630
|
+
|
|
1631
|
+
# source://httpx//lib/httpx/punycode.rb#74
|
|
1632
|
+
HTTPX::Punycode::DELIMITER = T.let(T.unsafe(nil), String)
|
|
1633
|
+
|
|
1634
|
+
# source://httpx//lib/httpx/punycode.rb#106
|
|
1635
|
+
HTTPX::Punycode::DOT = T.let(T.unsafe(nil), String)
|
|
1636
|
+
|
|
1637
|
+
# source://httpx//lib/httpx/punycode.rb#100
|
|
1638
|
+
HTTPX::Punycode::ENCODE_DIGIT = T.let(T.unsafe(nil), Proc)
|
|
1639
|
+
|
|
1640
|
+
# source://httpx//lib/httpx/punycode.rb#72
|
|
1641
|
+
HTTPX::Punycode::INITIAL_BIAS = T.let(T.unsafe(nil), Integer)
|
|
1642
|
+
|
|
1643
|
+
# source://httpx//lib/httpx/punycode.rb#73
|
|
1644
|
+
HTTPX::Punycode::INITIAL_N = T.let(T.unsafe(nil), Integer)
|
|
1645
|
+
|
|
1646
|
+
# source://httpx//lib/httpx/punycode.rb#78
|
|
1647
|
+
HTTPX::Punycode::LOBASE = T.let(T.unsafe(nil), Integer)
|
|
1648
|
+
|
|
1649
|
+
# source://httpx//lib/httpx/punycode.rb#76
|
|
1650
|
+
HTTPX::Punycode::MAXINT = T.let(T.unsafe(nil), Integer)
|
|
1651
|
+
|
|
1652
|
+
# source://httpx//lib/httpx/punycode.rb#107
|
|
1653
|
+
HTTPX::Punycode::PREFIX = T.let(T.unsafe(nil), String)
|
|
1654
|
+
|
|
1655
|
+
# source://httpx//lib/httpx/punycode.rb#81
|
|
1656
|
+
HTTPX::Punycode::RE_NONBASIC = T.let(T.unsafe(nil), Regexp)
|
|
1657
|
+
|
|
1658
|
+
# source://httpx//lib/httpx/punycode.rb#70
|
|
1659
|
+
HTTPX::Punycode::SKEW = T.let(T.unsafe(nil), Integer)
|
|
1660
|
+
|
|
1661
|
+
# source://httpx//lib/httpx/punycode.rb#69
|
|
1662
|
+
HTTPX::Punycode::TMAX = T.let(T.unsafe(nil), Integer)
|
|
1663
|
+
|
|
1664
|
+
# source://httpx//lib/httpx/punycode.rb#68
|
|
1665
|
+
HTTPX::Punycode::TMIN = T.let(T.unsafe(nil), Integer)
|
|
1666
|
+
|
|
1667
|
+
# source://httpx//lib/httpx/errors.rb#43
|
|
1668
|
+
class HTTPX::ReadTimeoutError < ::HTTPX::RequestTimeoutError; end
|
|
1669
|
+
|
|
1670
|
+
# source://httpx//lib/httpx/extensions.rb#151
|
|
1671
|
+
module HTTPX::RegexpExtensions; end
|
|
1672
|
+
|
|
1673
|
+
# source://httpx//lib/httpx/request.rb#7
|
|
1674
|
+
class HTTPX::Request
|
|
1675
|
+
include ::HTTPX::Callbacks
|
|
1676
|
+
extend ::Forwardable
|
|
1677
|
+
|
|
1678
|
+
# source://httpx//lib/httpx/request.rb#21
|
|
1679
|
+
def initialize(verb, uri, options = T.unsafe(nil)); end
|
|
1680
|
+
|
|
1681
|
+
# https://bugs.ruby-lang.org/issues/15278
|
|
1682
|
+
#
|
|
1683
|
+
# source://httpx//lib/httpx/request.rb#111
|
|
1684
|
+
def authority; end
|
|
1685
|
+
|
|
1686
|
+
# Returns the value of attribute body.
|
|
1687
|
+
#
|
|
1688
|
+
# source://httpx//lib/httpx/request.rb#14
|
|
1689
|
+
def body; end
|
|
1690
|
+
|
|
1691
|
+
# source://httpx//lib/httpx/request.rb#131
|
|
1692
|
+
def drain_body; end
|
|
1693
|
+
|
|
1694
|
+
# Exception raised during enumerable body writes
|
|
1695
|
+
#
|
|
1696
|
+
# source://httpx//lib/httpx/request.rb#17
|
|
1697
|
+
def drain_error; end
|
|
1698
|
+
|
|
1699
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1700
|
+
def empty?(*args, **_arg1, &block); end
|
|
1701
|
+
|
|
1702
|
+
# @return [Boolean]
|
|
1703
|
+
#
|
|
1704
|
+
# source://httpx//lib/httpx/request.rb#284
|
|
1705
|
+
def expects?; end
|
|
1706
|
+
|
|
1707
|
+
# Returns the value of attribute headers.
|
|
1708
|
+
#
|
|
1709
|
+
# source://httpx//lib/httpx/request.rb#14
|
|
1710
|
+
def headers; end
|
|
1711
|
+
|
|
1712
|
+
# :nocov:
|
|
1713
|
+
#
|
|
1714
|
+
# source://httpx//lib/httpx/request.rb#147
|
|
1715
|
+
def inspect; end
|
|
1716
|
+
|
|
1717
|
+
# source://httpx//lib/httpx/request.rb#66
|
|
1718
|
+
def interests; end
|
|
1719
|
+
|
|
1720
|
+
# source://httpx//lib/httpx/request.rb#82
|
|
1721
|
+
def merge_headers(h); end
|
|
1722
|
+
|
|
1723
|
+
# Returns the value of attribute options.
|
|
1724
|
+
#
|
|
1725
|
+
# source://httpx//lib/httpx/request.rb#14
|
|
1726
|
+
def options; end
|
|
1727
|
+
|
|
1728
|
+
# https://bugs.ruby-lang.org/issues/15278
|
|
1729
|
+
#
|
|
1730
|
+
# source://httpx//lib/httpx/request.rb#116
|
|
1731
|
+
def origin; end
|
|
1732
|
+
|
|
1733
|
+
# source://httpx//lib/httpx/request.rb#102
|
|
1734
|
+
def path; end
|
|
1735
|
+
|
|
1736
|
+
# source://httpx//lib/httpx/request.rb#120
|
|
1737
|
+
def query; end
|
|
1738
|
+
|
|
1739
|
+
# source://httpx//lib/httpx/request.rb#46
|
|
1740
|
+
def read_timeout; end
|
|
1741
|
+
|
|
1742
|
+
# source://httpx//lib/httpx/request.rb#54
|
|
1743
|
+
def request_timeout; end
|
|
1744
|
+
|
|
1745
|
+
# Returns the value of attribute response.
|
|
1746
|
+
#
|
|
1747
|
+
# source://httpx//lib/httpx/request.rb#14
|
|
1748
|
+
def response; end
|
|
1749
|
+
|
|
1750
|
+
# source://httpx//lib/httpx/request.rb#90
|
|
1751
|
+
def response=(response); end
|
|
1752
|
+
|
|
1753
|
+
# source://httpx//lib/httpx/request.rb#86
|
|
1754
|
+
def scheme; end
|
|
1755
|
+
|
|
1756
|
+
# Returns the value of attribute state.
|
|
1757
|
+
#
|
|
1758
|
+
# source://httpx//lib/httpx/request.rb#14
|
|
1759
|
+
def state; end
|
|
1760
|
+
|
|
1761
|
+
# source://httpx//lib/httpx/request.rb#62
|
|
1762
|
+
def trailers; end
|
|
1763
|
+
|
|
1764
|
+
# @return [Boolean]
|
|
1765
|
+
#
|
|
1766
|
+
# source://httpx//lib/httpx/request.rb#58
|
|
1767
|
+
def trailers?; end
|
|
1768
|
+
|
|
1769
|
+
# source://httpx//lib/httpx/request.rb#250
|
|
1770
|
+
def transition(nextstate); end
|
|
1771
|
+
|
|
1772
|
+
# Returns the value of attribute uri.
|
|
1773
|
+
#
|
|
1774
|
+
# source://httpx//lib/httpx/request.rb#14
|
|
1775
|
+
def uri; end
|
|
1776
|
+
|
|
1777
|
+
# Returns the value of attribute verb.
|
|
1778
|
+
#
|
|
1779
|
+
# source://httpx//lib/httpx/request.rb#14
|
|
1780
|
+
def verb; end
|
|
1781
|
+
|
|
1782
|
+
# source://httpx//lib/httpx/request.rb#50
|
|
1783
|
+
def write_timeout; end
|
|
1784
|
+
end
|
|
1785
|
+
|
|
1786
|
+
# :nocov:
|
|
1787
|
+
#
|
|
1788
|
+
# source://httpx//lib/httpx/request.rb#156
|
|
1789
|
+
class HTTPX::Request::Body < ::SimpleDelegator
|
|
1790
|
+
# @return [Body] a new instance of Body
|
|
1791
|
+
#
|
|
1792
|
+
# source://httpx//lib/httpx/request.rb#165
|
|
1793
|
+
def initialize(headers, options); end
|
|
1794
|
+
|
|
1795
|
+
# source://httpx//lib/httpx/request.rb#202
|
|
1796
|
+
def bytesize; end
|
|
1797
|
+
|
|
1798
|
+
# source://httpx//lib/httpx/request.rb#224
|
|
1799
|
+
def chunk!; end
|
|
1800
|
+
|
|
1801
|
+
# @return [Boolean]
|
|
1802
|
+
#
|
|
1803
|
+
# source://httpx//lib/httpx/request.rb#220
|
|
1804
|
+
def chunked?; end
|
|
1805
|
+
|
|
1806
|
+
# source://httpx//lib/httpx/request.rb#175
|
|
1807
|
+
def each(&block); end
|
|
1808
|
+
|
|
1809
|
+
# @return [Boolean]
|
|
1810
|
+
#
|
|
1811
|
+
# source://httpx//lib/httpx/request.rb#195
|
|
1812
|
+
def empty?; end
|
|
1813
|
+
|
|
1814
|
+
# :nocov:
|
|
1815
|
+
#
|
|
1816
|
+
# source://httpx//lib/httpx/request.rb#229
|
|
1817
|
+
def inspect; end
|
|
1818
|
+
|
|
1819
|
+
# source://httpx//lib/httpx/request.rb#189
|
|
1820
|
+
def rewind; end
|
|
1821
|
+
|
|
1822
|
+
# source://httpx//lib/httpx/request.rb#208
|
|
1823
|
+
def stream(body); end
|
|
1824
|
+
|
|
1825
|
+
# @return [Boolean]
|
|
1826
|
+
#
|
|
1827
|
+
# source://httpx//lib/httpx/request.rb#214
|
|
1828
|
+
def unbounded_body?; end
|
|
1829
|
+
|
|
1830
|
+
private
|
|
1831
|
+
|
|
1832
|
+
# source://httpx//lib/httpx/request.rb#237
|
|
1833
|
+
def initialize_body(options); end
|
|
1834
|
+
|
|
1835
|
+
class << self
|
|
1836
|
+
# source://httpx//lib/httpx/request.rb#158
|
|
1837
|
+
def new(_, options); end
|
|
1838
|
+
end
|
|
1839
|
+
end
|
|
1840
|
+
|
|
1841
|
+
# source://httpx//lib/httpx/request.rb#288
|
|
1842
|
+
class HTTPX::Request::ProcIO
|
|
1843
|
+
# @return [ProcIO] a new instance of ProcIO
|
|
1844
|
+
#
|
|
1845
|
+
# source://httpx//lib/httpx/request.rb#289
|
|
1846
|
+
def initialize(block); end
|
|
1847
|
+
|
|
1848
|
+
# source://httpx//lib/httpx/request.rb#293
|
|
1849
|
+
def write(data); end
|
|
1850
|
+
end
|
|
1851
|
+
|
|
1852
|
+
# source://httpx//lib/httpx/request.rb#12
|
|
1853
|
+
HTTPX::Request::USER_AGENT = T.let(T.unsafe(nil), String)
|
|
1854
|
+
|
|
1855
|
+
# source://httpx//lib/httpx/errors.rb#29
|
|
1856
|
+
class HTTPX::RequestTimeoutError < ::HTTPX::TimeoutError
|
|
1857
|
+
# @return [RequestTimeoutError] a new instance of RequestTimeoutError
|
|
1858
|
+
#
|
|
1859
|
+
# source://httpx//lib/httpx/errors.rb#32
|
|
1860
|
+
def initialize(request, response, timeout); end
|
|
1861
|
+
|
|
1862
|
+
# source://httpx//lib/httpx/errors.rb#38
|
|
1863
|
+
def marshal_dump; end
|
|
1864
|
+
|
|
1865
|
+
# Returns the value of attribute request.
|
|
1866
|
+
#
|
|
1867
|
+
# source://httpx//lib/httpx/errors.rb#30
|
|
1868
|
+
def request; end
|
|
1869
|
+
end
|
|
1870
|
+
|
|
1871
|
+
# source://httpx//lib/httpx/errors.rb#51
|
|
1872
|
+
class HTTPX::ResolveError < ::HTTPX::Error; end
|
|
1873
|
+
|
|
1874
|
+
# source://httpx//lib/httpx/errors.rb#49
|
|
1875
|
+
class HTTPX::ResolveTimeoutError < ::HTTPX::TimeoutError; end
|
|
1876
|
+
|
|
1877
|
+
# source://httpx//lib/httpx/resolver.rb#7
|
|
1878
|
+
module HTTPX::Resolver
|
|
1879
|
+
private
|
|
1880
|
+
|
|
1881
|
+
# source://httpx//lib/httpx/resolver.rb#54
|
|
1882
|
+
def cached_lookup(hostname); end
|
|
1883
|
+
|
|
1884
|
+
# source://httpx//lib/httpx/resolver.rb#61
|
|
1885
|
+
def cached_lookup_set(hostname, family, entries); end
|
|
1886
|
+
|
|
1887
|
+
# source://httpx//lib/httpx/resolver.rb#115
|
|
1888
|
+
def decode_dns_answer(payload); end
|
|
1889
|
+
|
|
1890
|
+
# source://httpx//lib/httpx/resolver.rb#107
|
|
1891
|
+
def encode_dns_query(hostname, type: T.unsafe(nil), message_id: T.unsafe(nil)); end
|
|
1892
|
+
|
|
1893
|
+
# source://httpx//lib/httpx/resolver.rb#103
|
|
1894
|
+
def generate_id; end
|
|
1895
|
+
|
|
1896
|
+
# source://httpx//lib/httpx/resolver.rb#41
|
|
1897
|
+
def ip_resolve(hostname); end
|
|
1898
|
+
|
|
1899
|
+
# do not use directly!
|
|
1900
|
+
#
|
|
1901
|
+
# source://httpx//lib/httpx/resolver.rb#87
|
|
1902
|
+
def lookup(hostname, ttl); end
|
|
1903
|
+
|
|
1904
|
+
# source://httpx//lib/httpx/resolver.rb#37
|
|
1905
|
+
def nolookup_resolve(hostname); end
|
|
1906
|
+
|
|
1907
|
+
# source://httpx//lib/httpx/resolver.rb#25
|
|
1908
|
+
def resolver_for(resolver_type); end
|
|
1909
|
+
|
|
1910
|
+
# source://httpx//lib/httpx/resolver.rb#46
|
|
1911
|
+
def system_resolve(hostname); end
|
|
1912
|
+
|
|
1913
|
+
class << self
|
|
1914
|
+
# source://httpx//lib/httpx/resolver.rb#54
|
|
1915
|
+
def cached_lookup(hostname); end
|
|
1916
|
+
|
|
1917
|
+
# source://httpx//lib/httpx/resolver.rb#61
|
|
1918
|
+
def cached_lookup_set(hostname, family, entries); end
|
|
1919
|
+
|
|
1920
|
+
# source://httpx//lib/httpx/resolver.rb#115
|
|
1921
|
+
def decode_dns_answer(payload); end
|
|
1922
|
+
|
|
1923
|
+
# source://httpx//lib/httpx/resolver.rb#107
|
|
1924
|
+
def encode_dns_query(hostname, type: T.unsafe(nil), message_id: T.unsafe(nil)); end
|
|
1925
|
+
|
|
1926
|
+
# source://httpx//lib/httpx/resolver.rb#103
|
|
1927
|
+
def generate_id; end
|
|
1928
|
+
|
|
1929
|
+
# source://httpx//lib/httpx/resolver.rb#41
|
|
1930
|
+
def ip_resolve(hostname); end
|
|
1931
|
+
|
|
1932
|
+
# do not use directly!
|
|
1933
|
+
#
|
|
1934
|
+
# source://httpx//lib/httpx/resolver.rb#87
|
|
1935
|
+
def lookup(hostname, ttl); end
|
|
1936
|
+
|
|
1937
|
+
# source://httpx//lib/httpx/resolver.rb#37
|
|
1938
|
+
def nolookup_resolve(hostname); end
|
|
1939
|
+
|
|
1940
|
+
# source://httpx//lib/httpx/resolver.rb#25
|
|
1941
|
+
def resolver_for(resolver_type); end
|
|
1942
|
+
|
|
1943
|
+
# source://httpx//lib/httpx/resolver.rb#46
|
|
1944
|
+
def system_resolve(hostname); end
|
|
1945
|
+
end
|
|
1946
|
+
end
|
|
1947
|
+
|
|
1948
|
+
# source://httpx//lib/httpx/resolver/https.rb#9
|
|
1949
|
+
class HTTPX::Resolver::HTTPS < ::HTTPX::Resolver::Resolver
|
|
1950
|
+
extend ::Forwardable
|
|
1951
|
+
|
|
1952
|
+
# source://httpx//lib/httpx/resolver/https.rb#32
|
|
1953
|
+
def initialize(_, options); end
|
|
1954
|
+
|
|
1955
|
+
# source://httpx//lib/httpx/resolver/https.rb#45
|
|
1956
|
+
def <<(connection); end
|
|
1957
|
+
|
|
1958
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1959
|
+
def call(*args, **_arg1, &block); end
|
|
1960
|
+
|
|
1961
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1962
|
+
def close(*args, **_arg1, &block); end
|
|
1963
|
+
|
|
1964
|
+
# source://httpx//lib/httpx/resolver/https.rb#59
|
|
1965
|
+
def closed?; end
|
|
1966
|
+
|
|
1967
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1968
|
+
def connecting?(*args, **_arg1, &block); end
|
|
1969
|
+
|
|
1970
|
+
# source://httpx//lib/httpx/resolver/https.rb#63
|
|
1971
|
+
def empty?; end
|
|
1972
|
+
|
|
1973
|
+
# source://httpx//lib/httpx/resolver/https.rb#67
|
|
1974
|
+
def resolver_connection; end
|
|
1975
|
+
|
|
1976
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1977
|
+
def state(*args, **_arg1, &block); end
|
|
1978
|
+
|
|
1979
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
1980
|
+
def to_io(*args, **_arg1, &block); end
|
|
1981
|
+
|
|
1982
|
+
private
|
|
1983
|
+
|
|
1984
|
+
# source://httpx//lib/httpx/resolver/https.rb#204
|
|
1985
|
+
def build_request(hostname); end
|
|
1986
|
+
|
|
1987
|
+
# source://httpx//lib/httpx/resolver/https.rb#223
|
|
1988
|
+
def decode_response_body(response); end
|
|
1989
|
+
|
|
1990
|
+
# source://httpx//lib/httpx/resolver/https.rb#125
|
|
1991
|
+
def on_promise(_, stream); end
|
|
1992
|
+
|
|
1993
|
+
# source://httpx//lib/httpx/resolver/https.rb#112
|
|
1994
|
+
def on_response(request, response); end
|
|
1995
|
+
|
|
1996
|
+
# source://httpx//lib/httpx/resolver/https.rb#130
|
|
1997
|
+
def parse(request, response); end
|
|
1998
|
+
|
|
1999
|
+
# source://httpx//lib/httpx/resolver/https.rb#155
|
|
2000
|
+
def parse_addresses(answers); end
|
|
2001
|
+
|
|
2002
|
+
# source://httpx//lib/httpx/resolver/https.rb#233
|
|
2003
|
+
def reset_hostname(hostname, reset_candidates: T.unsafe(nil)); end
|
|
2004
|
+
|
|
2005
|
+
# source://httpx//lib/httpx/resolver/https.rb#81
|
|
2006
|
+
def resolve(connection = T.unsafe(nil), hostname = T.unsafe(nil)); end
|
|
2007
|
+
end
|
|
2008
|
+
|
|
2009
|
+
# source://httpx//lib/httpx/resolver/https.rb#25
|
|
2010
|
+
HTTPX::Resolver::HTTPS::DEFAULTS = T.let(T.unsafe(nil), Hash)
|
|
2011
|
+
|
|
2012
|
+
# source://httpx//lib/httpx/resolver/https.rb#14
|
|
2013
|
+
module HTTPX::Resolver::HTTPS::DNSExtensions; end
|
|
2014
|
+
|
|
2015
|
+
# source://httpx//lib/httpx/resolver/https.rb#23
|
|
2016
|
+
HTTPX::Resolver::HTTPS::NAMESERVER = T.let(T.unsafe(nil), String)
|
|
2017
|
+
|
|
2018
|
+
# source://httpx//lib/httpx/resolver/multi.rb#7
|
|
2019
|
+
class HTTPX::Resolver::Multi
|
|
2020
|
+
include ::HTTPX::Callbacks
|
|
2021
|
+
|
|
2022
|
+
# source://httpx//lib/httpx/resolver/multi.rb#13
|
|
2023
|
+
def initialize(resolver_type, options); end
|
|
2024
|
+
|
|
2025
|
+
# source://httpx//lib/httpx/resolver/multi.rb#36
|
|
2026
|
+
def close; end
|
|
2027
|
+
|
|
2028
|
+
# source://httpx//lib/httpx/resolver/multi.rb#28
|
|
2029
|
+
def closed?; end
|
|
2030
|
+
|
|
2031
|
+
# source://httpx//lib/httpx/resolver/multi.rb#40
|
|
2032
|
+
def connections; end
|
|
2033
|
+
|
|
2034
|
+
# source://httpx//lib/httpx/resolver/multi.rb#44
|
|
2035
|
+
def early_resolve(connection); end
|
|
2036
|
+
|
|
2037
|
+
# source://httpx//lib/httpx/resolver/multi.rb#11
|
|
2038
|
+
def resolvers; end
|
|
2039
|
+
|
|
2040
|
+
# source://httpx//lib/httpx/resolver/multi.rb#32
|
|
2041
|
+
def timeout; end
|
|
2042
|
+
|
|
2043
|
+
private
|
|
2044
|
+
|
|
2045
|
+
# source://httpx//lib/httpx/resolver/multi.rb#70
|
|
2046
|
+
def on_resolver_close(resolver); end
|
|
2047
|
+
|
|
2048
|
+
# source://httpx//lib/httpx/resolver/multi.rb#62
|
|
2049
|
+
def on_resolver_connection(connection); end
|
|
2050
|
+
|
|
2051
|
+
# source://httpx//lib/httpx/resolver/multi.rb#66
|
|
2052
|
+
def on_resolver_error(connection, error); end
|
|
2053
|
+
end
|
|
2054
|
+
|
|
2055
|
+
# source://httpx//lib/httpx/resolver/native.rb#7
|
|
2056
|
+
class HTTPX::Resolver::Native < ::HTTPX::Resolver::Resolver
|
|
2057
|
+
extend ::Forwardable
|
|
2058
|
+
|
|
2059
|
+
# source://httpx//lib/httpx/resolver/native.rb#32
|
|
2060
|
+
def initialize(_, options); end
|
|
2061
|
+
|
|
2062
|
+
# source://httpx//lib/httpx/resolver/native.rb#92
|
|
2063
|
+
def <<(connection); end
|
|
2064
|
+
|
|
2065
|
+
# source://httpx//lib/httpx/resolver/native.rb#61
|
|
2066
|
+
def call; end
|
|
2067
|
+
|
|
2068
|
+
# source://httpx//lib/httpx/resolver/native.rb#49
|
|
2069
|
+
def close; end
|
|
2070
|
+
|
|
2071
|
+
# source://httpx//lib/httpx/resolver/native.rb#53
|
|
2072
|
+
def closed?; end
|
|
2073
|
+
|
|
2074
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2075
|
+
def empty?(*args, **_arg1, &block); end
|
|
2076
|
+
|
|
2077
|
+
# source://httpx//lib/httpx/resolver/native.rb#80
|
|
2078
|
+
def interests; end
|
|
2079
|
+
|
|
2080
|
+
# source://httpx//lib/httpx/resolver/native.rb#111
|
|
2081
|
+
def raise_timeout_error(interval); end
|
|
2082
|
+
|
|
2083
|
+
# source://httpx//lib/httpx/resolver/native.rb#30
|
|
2084
|
+
def state; end
|
|
2085
|
+
|
|
2086
|
+
# source://httpx//lib/httpx/resolver/native.rb#103
|
|
2087
|
+
def timeout; end
|
|
2088
|
+
|
|
2089
|
+
# source://httpx//lib/httpx/resolver/native.rb#57
|
|
2090
|
+
def to_io; end
|
|
2091
|
+
|
|
2092
|
+
private
|
|
2093
|
+
|
|
2094
|
+
# source://httpx//lib/httpx/resolver/native.rb#378
|
|
2095
|
+
def build_socket; end
|
|
2096
|
+
|
|
2097
|
+
# source://httpx//lib/httpx/resolver/native.rb#117
|
|
2098
|
+
def calculate_interests; end
|
|
2099
|
+
|
|
2100
|
+
# source://httpx//lib/httpx/resolver/native.rb#125
|
|
2101
|
+
def consume; end
|
|
2102
|
+
|
|
2103
|
+
# source://httpx//lib/httpx/resolver/native.rb#131
|
|
2104
|
+
def do_retry(loop_time = T.unsafe(nil)); end
|
|
2105
|
+
|
|
2106
|
+
# source://httpx//lib/httpx/resolver/native.rb#171
|
|
2107
|
+
def dread(wsize = T.unsafe(nil)); end
|
|
2108
|
+
|
|
2109
|
+
# source://httpx//lib/httpx/resolver/native.rb#221
|
|
2110
|
+
def dwrite; end
|
|
2111
|
+
|
|
2112
|
+
# source://httpx//lib/httpx/resolver/native.rb#358
|
|
2113
|
+
def encode_dns_query(hostname); end
|
|
2114
|
+
|
|
2115
|
+
# source://httpx//lib/httpx/resolver/native.rb#365
|
|
2116
|
+
def generate_candidates(name); end
|
|
2117
|
+
|
|
2118
|
+
# source://httpx//lib/httpx/resolver/native.rb#421
|
|
2119
|
+
def handle_error(error); end
|
|
2120
|
+
|
|
2121
|
+
# source://httpx//lib/httpx/resolver/native.rb#239
|
|
2122
|
+
def parse(buffer); end
|
|
2123
|
+
|
|
2124
|
+
# source://httpx//lib/httpx/resolver/native.rb#281
|
|
2125
|
+
def parse_addresses(addresses); end
|
|
2126
|
+
|
|
2127
|
+
# source://httpx//lib/httpx/resolver/native.rb#432
|
|
2128
|
+
def reset_hostname(hostname, reset_candidates: T.unsafe(nil)); end
|
|
2129
|
+
|
|
2130
|
+
# source://httpx//lib/httpx/resolver/native.rb#333
|
|
2131
|
+
def resolve(connection = T.unsafe(nil), hostname = T.unsafe(nil)); end
|
|
2132
|
+
|
|
2133
|
+
# source://httpx//lib/httpx/resolver/native.rb#393
|
|
2134
|
+
def transition(nextstate); end
|
|
2135
|
+
end
|
|
2136
|
+
|
|
2137
|
+
# source://httpx//lib/httpx/resolver/native.rb#11
|
|
2138
|
+
HTTPX::Resolver::Native::DEFAULTS = T.let(T.unsafe(nil), Hash)
|
|
2139
|
+
|
|
2140
|
+
# source://httpx//lib/httpx/resolver/native.rb#26
|
|
2141
|
+
HTTPX::Resolver::Native::DNS_PORT = T.let(T.unsafe(nil), Integer)
|
|
2142
|
+
|
|
2143
|
+
# source://httpx//lib/httpx/resolver.rb#8
|
|
2144
|
+
HTTPX::Resolver::RESOLVE_TIMEOUT = T.let(T.unsafe(nil), Integer)
|
|
2145
|
+
|
|
2146
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#7
|
|
2147
|
+
class HTTPX::Resolver::Resolver
|
|
2148
|
+
include ::HTTPX::Callbacks
|
|
2149
|
+
include ::HTTPX::Loggable
|
|
2150
|
+
|
|
2151
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#33
|
|
2152
|
+
def initialize(family, options); end
|
|
2153
|
+
|
|
2154
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#39
|
|
2155
|
+
def close; end
|
|
2156
|
+
|
|
2157
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#41
|
|
2158
|
+
def closed?; end
|
|
2159
|
+
|
|
2160
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#49
|
|
2161
|
+
def emit_addresses(connection, family, addresses, early_resolve = T.unsafe(nil)); end
|
|
2162
|
+
|
|
2163
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#45
|
|
2164
|
+
def empty?; end
|
|
2165
|
+
|
|
2166
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#29
|
|
2167
|
+
def family; end
|
|
2168
|
+
|
|
2169
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#31
|
|
2170
|
+
def pool=(_arg0); end
|
|
2171
|
+
|
|
2172
|
+
private
|
|
2173
|
+
|
|
2174
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#81
|
|
2175
|
+
def early_resolve(connection, hostname: T.unsafe(nil)); end
|
|
2176
|
+
|
|
2177
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#93
|
|
2178
|
+
def emit_resolve_error(connection, hostname = T.unsafe(nil), ex = T.unsafe(nil)); end
|
|
2179
|
+
|
|
2180
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#75
|
|
2181
|
+
def emit_resolved_connection(connection, addresses); end
|
|
2182
|
+
|
|
2183
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#97
|
|
2184
|
+
def resolve_error(hostname, ex = T.unsafe(nil)); end
|
|
2185
|
+
|
|
2186
|
+
class << self
|
|
2187
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#24
|
|
2188
|
+
def multi?; end
|
|
2189
|
+
end
|
|
2190
|
+
end
|
|
2191
|
+
|
|
2192
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#18
|
|
2193
|
+
HTTPX::Resolver::Resolver::FAMILY_TYPES = T.let(T.unsafe(nil), Hash)
|
|
2194
|
+
|
|
2195
|
+
# source://httpx//lib/httpx/resolver/resolver.rb#13
|
|
2196
|
+
HTTPX::Resolver::Resolver::RECORD_TYPES = T.let(T.unsafe(nil), Hash)
|
|
2197
|
+
|
|
2198
|
+
# source://httpx//lib/httpx/resolver/system.rb#7
|
|
2199
|
+
class HTTPX::Resolver::System < ::HTTPX::Resolver::Resolver
|
|
2200
|
+
extend ::Forwardable
|
|
2201
|
+
|
|
2202
|
+
# source://httpx//lib/httpx/resolver/system.rb#29
|
|
2203
|
+
def initialize(options); end
|
|
2204
|
+
|
|
2205
|
+
# source://httpx//lib/httpx/resolver/system.rb#90
|
|
2206
|
+
def <<(connection); end
|
|
2207
|
+
|
|
2208
|
+
# source://httpx//lib/httpx/resolver/system.rb#66
|
|
2209
|
+
def call; end
|
|
2210
|
+
|
|
2211
|
+
# source://httpx//lib/httpx/resolver/system.rb#54
|
|
2212
|
+
def close; end
|
|
2213
|
+
|
|
2214
|
+
# source://httpx//lib/httpx/resolver/system.rb#58
|
|
2215
|
+
def closed?; end
|
|
2216
|
+
|
|
2217
|
+
# source://httpx//lib/httpx/resolver/system.rb#50
|
|
2218
|
+
def connections; end
|
|
2219
|
+
|
|
2220
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2221
|
+
def empty?(*args, **_arg1, &block); end
|
|
2222
|
+
|
|
2223
|
+
# source://httpx//lib/httpx/resolver/system.rb#74
|
|
2224
|
+
def interests; end
|
|
2225
|
+
|
|
2226
|
+
# source://httpx//lib/httpx/resolver/system.rb#44
|
|
2227
|
+
def resolvers; end
|
|
2228
|
+
|
|
2229
|
+
# source://httpx//lib/httpx/resolver/system.rb#25
|
|
2230
|
+
def state; end
|
|
2231
|
+
|
|
2232
|
+
# source://httpx//lib/httpx/resolver/system.rb#80
|
|
2233
|
+
def timeout; end
|
|
2234
|
+
|
|
2235
|
+
# source://httpx//lib/httpx/resolver/system.rb#62
|
|
2236
|
+
def to_io; end
|
|
2237
|
+
|
|
2238
|
+
private
|
|
2239
|
+
|
|
2240
|
+
# source://httpx//lib/httpx/resolver/system.rb#205
|
|
2241
|
+
def __addrinfo_resolve(host, scheme); end
|
|
2242
|
+
|
|
2243
|
+
# source://httpx//lib/httpx/resolver/system.rb#158
|
|
2244
|
+
def async_resolve(connection, hostname, scheme); end
|
|
2245
|
+
|
|
2246
|
+
# source://httpx//lib/httpx/resolver/system.rb#114
|
|
2247
|
+
def consume; end
|
|
2248
|
+
|
|
2249
|
+
# source://httpx//lib/httpx/resolver/system.rb#141
|
|
2250
|
+
def resolve(connection = T.unsafe(nil)); end
|
|
2251
|
+
|
|
2252
|
+
# source://httpx//lib/httpx/resolver/system.rb#97
|
|
2253
|
+
def transition(nextstate); end
|
|
2254
|
+
|
|
2255
|
+
class << self
|
|
2256
|
+
# source://httpx//lib/httpx/resolver/system.rb#20
|
|
2257
|
+
def multi?; end
|
|
2258
|
+
end
|
|
2259
|
+
end
|
|
2260
|
+
|
|
2261
|
+
# source://httpx//lib/httpx/resolver/system.rb#16
|
|
2262
|
+
HTTPX::Resolver::System::DONE = T.let(T.unsafe(nil), Integer)
|
|
2263
|
+
|
|
2264
|
+
# source://httpx//lib/httpx/resolver/system.rb#17
|
|
2265
|
+
HTTPX::Resolver::System::ERROR = T.let(T.unsafe(nil), Integer)
|
|
2266
|
+
|
|
2267
|
+
# source://httpx//lib/httpx/resolver/system.rb#11
|
|
2268
|
+
HTTPX::Resolver::System::RESOLV_ERRORS = T.let(T.unsafe(nil), Array)
|
|
2269
|
+
|
|
2270
|
+
# source://httpx//lib/httpx/response.rb#10
|
|
2271
|
+
class HTTPX::Response
|
|
2272
|
+
include ::HTTPX::Callbacks
|
|
2273
|
+
include ::HTTPX::ResponsePatternMatchExtensions
|
|
2274
|
+
extend ::Forwardable
|
|
2275
|
+
|
|
2276
|
+
# @return [Response] a new instance of Response
|
|
2277
|
+
#
|
|
2278
|
+
# source://httpx//lib/httpx/response.rb#28
|
|
2279
|
+
def initialize(request, status, version, headers); end
|
|
2280
|
+
|
|
2281
|
+
# source://httpx//lib/httpx/response.rb#42
|
|
2282
|
+
def <<(data); end
|
|
2283
|
+
|
|
2284
|
+
# Returns the value of attribute body.
|
|
2285
|
+
#
|
|
2286
|
+
# source://httpx//lib/httpx/response.rb#14
|
|
2287
|
+
def body; end
|
|
2288
|
+
|
|
2289
|
+
# @return [Boolean]
|
|
2290
|
+
#
|
|
2291
|
+
# source://httpx//lib/httpx/response.rb#59
|
|
2292
|
+
def bodyless?; end
|
|
2293
|
+
|
|
2294
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2295
|
+
def close(*args, **_arg1, &block); end
|
|
2296
|
+
|
|
2297
|
+
# @return [Boolean]
|
|
2298
|
+
#
|
|
2299
|
+
# source://httpx//lib/httpx/response.rb#64
|
|
2300
|
+
def complete?; end
|
|
2301
|
+
|
|
2302
|
+
# source://httpx//lib/httpx/response.rb#46
|
|
2303
|
+
def content_type; end
|
|
2304
|
+
|
|
2305
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2306
|
+
def copy_to(*args, **_arg1, &block); end
|
|
2307
|
+
|
|
2308
|
+
# :nocov:
|
|
2309
|
+
#
|
|
2310
|
+
# source://httpx//lib/httpx/response.rb#78
|
|
2311
|
+
def error; end
|
|
2312
|
+
|
|
2313
|
+
# source://httpx//lib/httpx/response.rb#54
|
|
2314
|
+
def finish!; end
|
|
2315
|
+
|
|
2316
|
+
# @return [Boolean]
|
|
2317
|
+
#
|
|
2318
|
+
# source://httpx//lib/httpx/response.rb#50
|
|
2319
|
+
def finished?; end
|
|
2320
|
+
|
|
2321
|
+
# source://httpx//lib/httpx/response.rb#94
|
|
2322
|
+
def form; end
|
|
2323
|
+
|
|
2324
|
+
# Returns the value of attribute headers.
|
|
2325
|
+
#
|
|
2326
|
+
# source://httpx//lib/httpx/response.rb#14
|
|
2327
|
+
def headers; end
|
|
2328
|
+
|
|
2329
|
+
# :nocov:
|
|
2330
|
+
#
|
|
2331
|
+
# source://httpx//lib/httpx/response.rb#69
|
|
2332
|
+
def inspect; end
|
|
2333
|
+
|
|
2334
|
+
# source://httpx//lib/httpx/response.rb#90
|
|
2335
|
+
def json(*args); end
|
|
2336
|
+
|
|
2337
|
+
# source://httpx//lib/httpx/response.rb#38
|
|
2338
|
+
def merge_headers(h); end
|
|
2339
|
+
|
|
2340
|
+
# source://httpx//lib/httpx/response.rb#84
|
|
2341
|
+
def raise_for_status; end
|
|
2342
|
+
|
|
2343
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2344
|
+
def read(*args, **_arg1, &block); end
|
|
2345
|
+
|
|
2346
|
+
# Returns the value of attribute status.
|
|
2347
|
+
#
|
|
2348
|
+
# source://httpx//lib/httpx/response.rb#14
|
|
2349
|
+
def status; end
|
|
2350
|
+
|
|
2351
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2352
|
+
def to_s(*args, **_arg1, &block); end
|
|
2353
|
+
|
|
2354
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2355
|
+
def to_str(*args, **_arg1, &block); end
|
|
2356
|
+
|
|
2357
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2358
|
+
def uri(*args, **_arg1, &block); end
|
|
2359
|
+
|
|
2360
|
+
# Returns the value of attribute version.
|
|
2361
|
+
#
|
|
2362
|
+
# source://httpx//lib/httpx/response.rb#14
|
|
2363
|
+
def version; end
|
|
2364
|
+
|
|
2365
|
+
# source://httpx//lib/httpx/response.rb#98
|
|
2366
|
+
def xml; end
|
|
2367
|
+
|
|
2368
|
+
private
|
|
2369
|
+
|
|
2370
|
+
# @raise [Error]
|
|
2371
|
+
#
|
|
2372
|
+
# source://httpx//lib/httpx/response.rb#104
|
|
2373
|
+
def decode(transcoder, *args); end
|
|
2374
|
+
|
|
2375
|
+
# @return [Boolean]
|
|
2376
|
+
#
|
|
2377
|
+
# source://httpx//lib/httpx/response.rb#116
|
|
2378
|
+
def no_data?; end
|
|
2379
|
+
end
|
|
2380
|
+
|
|
2381
|
+
# source://httpx//lib/httpx/response.rb#128
|
|
2382
|
+
class HTTPX::Response::Body
|
|
2383
|
+
# @return [Body] a new instance of Body
|
|
2384
|
+
#
|
|
2385
|
+
# source://httpx//lib/httpx/response.rb#131
|
|
2386
|
+
def initialize(response, options); end
|
|
2387
|
+
|
|
2388
|
+
# source://httpx//lib/httpx/response.rb#250
|
|
2389
|
+
def ==(other); end
|
|
2390
|
+
|
|
2391
|
+
# source://httpx//lib/httpx/response.rb#176
|
|
2392
|
+
def bytesize; end
|
|
2393
|
+
|
|
2394
|
+
# closes/cleans the buffer, resets everything
|
|
2395
|
+
#
|
|
2396
|
+
# source://httpx//lib/httpx/response.rb#240
|
|
2397
|
+
def close; end
|
|
2398
|
+
|
|
2399
|
+
# @return [Boolean]
|
|
2400
|
+
#
|
|
2401
|
+
# source://httpx//lib/httpx/response.rb#149
|
|
2402
|
+
def closed?; end
|
|
2403
|
+
|
|
2404
|
+
# source://httpx//lib/httpx/response.rb#227
|
|
2405
|
+
def copy_to(dest); end
|
|
2406
|
+
|
|
2407
|
+
# source://httpx//lib/httpx/response.rb#180
|
|
2408
|
+
def each; end
|
|
2409
|
+
|
|
2410
|
+
# @return [Boolean]
|
|
2411
|
+
#
|
|
2412
|
+
# source://httpx//lib/httpx/response.rb#223
|
|
2413
|
+
def empty?; end
|
|
2414
|
+
|
|
2415
|
+
# Returns the value of attribute encoding.
|
|
2416
|
+
#
|
|
2417
|
+
# source://httpx//lib/httpx/response.rb#129
|
|
2418
|
+
def encoding; end
|
|
2419
|
+
|
|
2420
|
+
# source://httpx//lib/httpx/response.rb#195
|
|
2421
|
+
def filename; end
|
|
2422
|
+
|
|
2423
|
+
# :nocov:
|
|
2424
|
+
#
|
|
2425
|
+
# source://httpx//lib/httpx/response.rb#261
|
|
2426
|
+
def inspect; end
|
|
2427
|
+
|
|
2428
|
+
# source://httpx//lib/httpx/response.rb#165
|
|
2429
|
+
def read(*args); end
|
|
2430
|
+
|
|
2431
|
+
# :nocov:
|
|
2432
|
+
#
|
|
2433
|
+
# source://httpx//lib/httpx/response.rb#268
|
|
2434
|
+
def rewind; end
|
|
2435
|
+
|
|
2436
|
+
# source://httpx//lib/httpx/response.rb#201
|
|
2437
|
+
def to_s; end
|
|
2438
|
+
|
|
2439
|
+
# source://httpx//lib/httpx/response.rb#201
|
|
2440
|
+
def to_str; end
|
|
2441
|
+
|
|
2442
|
+
# source://httpx//lib/httpx/response.rb#153
|
|
2443
|
+
def write(chunk); end
|
|
2444
|
+
|
|
2445
|
+
private
|
|
2446
|
+
|
|
2447
|
+
# source://httpx//lib/httpx/response.rb#307
|
|
2448
|
+
def _with_same_buffer_pos; end
|
|
2449
|
+
|
|
2450
|
+
# source://httpx//lib/httpx/response.rb#143
|
|
2451
|
+
def initialize_dup(other); end
|
|
2452
|
+
|
|
2453
|
+
# source://httpx//lib/httpx/response.rb#279
|
|
2454
|
+
def transition; end
|
|
2455
|
+
end
|
|
2456
|
+
|
|
2457
|
+
# source://httpx//lib/httpx/pmatch_extensions.rb#4
|
|
2458
|
+
module HTTPX::ResponsePatternMatchExtensions
|
|
2459
|
+
# source://httpx//lib/httpx/pmatch_extensions.rb#5
|
|
2460
|
+
def deconstruct; end
|
|
2461
|
+
|
|
2462
|
+
# source://httpx//lib/httpx/pmatch_extensions.rb#9
|
|
2463
|
+
def deconstruct_keys(_keys); end
|
|
2464
|
+
end
|
|
2465
|
+
|
|
2466
|
+
# source://httpx//lib/httpx/io/ssl.rb#9
|
|
2467
|
+
class HTTPX::SSL < ::HTTPX::TCP
|
|
2468
|
+
# @return [SSL] a new instance of SSL
|
|
2469
|
+
#
|
|
2470
|
+
# source://httpx//lib/httpx/io/ssl.rb#18
|
|
2471
|
+
def initialize(_, _, options); end
|
|
2472
|
+
|
|
2473
|
+
# @return [Boolean]
|
|
2474
|
+
#
|
|
2475
|
+
# source://httpx//lib/httpx/io/ssl.rb#35
|
|
2476
|
+
def can_verify_peer?; end
|
|
2477
|
+
|
|
2478
|
+
# source://httpx//lib/httpx/io/ssl.rb#46
|
|
2479
|
+
def close; end
|
|
2480
|
+
|
|
2481
|
+
# source://httpx//lib/httpx/io/ssl.rb#57
|
|
2482
|
+
def connect; end
|
|
2483
|
+
|
|
2484
|
+
# @return [Boolean]
|
|
2485
|
+
#
|
|
2486
|
+
# source://httpx//lib/httpx/io/ssl.rb#53
|
|
2487
|
+
def connected?; end
|
|
2488
|
+
|
|
2489
|
+
# source://httpx//lib/httpx/io/ssl.rb#29
|
|
2490
|
+
def protocol; end
|
|
2491
|
+
|
|
2492
|
+
# :nocov:
|
|
2493
|
+
#
|
|
2494
|
+
# source://httpx//lib/httpx/io/ssl.rb#97
|
|
2495
|
+
def try_ssl_connect; end
|
|
2496
|
+
|
|
2497
|
+
# source://httpx//lib/httpx/io/ssl.rb#39
|
|
2498
|
+
def verify_hostname(host); end
|
|
2499
|
+
|
|
2500
|
+
private
|
|
2501
|
+
|
|
2502
|
+
# source://httpx//lib/httpx/io/ssl.rb#140
|
|
2503
|
+
def log_transition_state(nextstate); end
|
|
2504
|
+
|
|
2505
|
+
# source://httpx//lib/httpx/io/ssl.rb#129
|
|
2506
|
+
def transition(nextstate); end
|
|
2507
|
+
end
|
|
2508
|
+
|
|
2509
|
+
# source://httpx//lib/httpx/io/ssl.rb#12
|
|
2510
|
+
HTTPX::SSL::TLS_OPTIONS = T.let(T.unsafe(nil), Hash)
|
|
2511
|
+
|
|
2512
|
+
# source://httpx//lib/httpx/selector.rb#5
|
|
2513
|
+
class HTTPX::Selector
|
|
2514
|
+
# @return [Selector] a new instance of Selector
|
|
2515
|
+
#
|
|
2516
|
+
# source://httpx//lib/httpx/selector.rb#14
|
|
2517
|
+
def initialize; end
|
|
2518
|
+
|
|
2519
|
+
# deregisters +io+ from selectables.
|
|
2520
|
+
#
|
|
2521
|
+
# source://httpx//lib/httpx/selector.rb#19
|
|
2522
|
+
def deregister(io); end
|
|
2523
|
+
|
|
2524
|
+
# register +io+.
|
|
2525
|
+
#
|
|
2526
|
+
# source://httpx//lib/httpx/selector.rb#24
|
|
2527
|
+
def register(io); end
|
|
2528
|
+
|
|
2529
|
+
# source://httpx//lib/httpx/selector.rb#126
|
|
2530
|
+
def select(interval, &block); end
|
|
2531
|
+
|
|
2532
|
+
private
|
|
2533
|
+
|
|
2534
|
+
# source://httpx//lib/httpx/selector.rb#32
|
|
2535
|
+
def select_many(interval, &block); end
|
|
2536
|
+
|
|
2537
|
+
# source://httpx//lib/httpx/selector.rb#100
|
|
2538
|
+
def select_one(interval); end
|
|
2539
|
+
end
|
|
2540
|
+
|
|
2541
|
+
# source://httpx//lib/httpx/selector.rb#6
|
|
2542
|
+
HTTPX::Selector::READABLE = T.let(T.unsafe(nil), Array)
|
|
2543
|
+
|
|
2544
|
+
# source://httpx//lib/httpx/selector.rb#7
|
|
2545
|
+
HTTPX::Selector::WRITABLE = T.let(T.unsafe(nil), Array)
|
|
2546
|
+
|
|
2547
|
+
# source://httpx//lib/httpx/session.rb#4
|
|
2548
|
+
class HTTPX::Session
|
|
2549
|
+
include ::HTTPX::Loggable
|
|
2550
|
+
include ::HTTPX::Chainable
|
|
2551
|
+
include ::HTTPX::Callbacks
|
|
2552
|
+
|
|
2553
|
+
# @return [Session] a new instance of Session
|
|
2554
|
+
#
|
|
2555
|
+
# source://httpx//lib/httpx/session.rb#11
|
|
2556
|
+
def initialize(options = T.unsafe(nil), &blk); end
|
|
2557
|
+
|
|
2558
|
+
# source://httpx//lib/httpx/session.rb#43
|
|
2559
|
+
def build_request(verb, uri, options = T.unsafe(nil)); end
|
|
2560
|
+
|
|
2561
|
+
# source://httpx//lib/httpx/session.rb#29
|
|
2562
|
+
def close(*args); end
|
|
2563
|
+
|
|
2564
|
+
# @raise [ArgumentError]
|
|
2565
|
+
#
|
|
2566
|
+
# source://httpx//lib/httpx/session.rb#33
|
|
2567
|
+
def request(*args, **options); end
|
|
2568
|
+
|
|
2569
|
+
# source://httpx//lib/httpx/session.rb#18
|
|
2570
|
+
def wrap; end
|
|
2571
|
+
|
|
2572
|
+
private
|
|
2573
|
+
|
|
2574
|
+
# source://httpx//lib/httpx/session.rb#224
|
|
2575
|
+
def _send_requests(requests); end
|
|
2576
|
+
|
|
2577
|
+
# source://httpx//lib/httpx/session.rb#134
|
|
2578
|
+
def build_altsvc_connection(existing_connection, connections, alt_origin, origin, alt_params, options); end
|
|
2579
|
+
|
|
2580
|
+
# source://httpx//lib/httpx/session.rb#192
|
|
2581
|
+
def build_connection(uri, options); end
|
|
2582
|
+
|
|
2583
|
+
# @raise [ArgumentError]
|
|
2584
|
+
#
|
|
2585
|
+
# source://httpx//lib/httpx/session.rb#169
|
|
2586
|
+
def build_requests(*args, options); end
|
|
2587
|
+
|
|
2588
|
+
# source://httpx//lib/httpx/session.rb#92
|
|
2589
|
+
def fetch_response(request, _, _); end
|
|
2590
|
+
|
|
2591
|
+
# source://httpx//lib/httpx/session.rb#96
|
|
2592
|
+
def find_connection(request, connections, options); end
|
|
2593
|
+
|
|
2594
|
+
# source://httpx//lib/httpx/session.rb#206
|
|
2595
|
+
def init_connection(type, uri, options); end
|
|
2596
|
+
|
|
2597
|
+
# source://httpx//lib/httpx/session.rb#87
|
|
2598
|
+
def on_promise(_, stream); end
|
|
2599
|
+
|
|
2600
|
+
# source://httpx//lib/httpx/session.rb#83
|
|
2601
|
+
def on_response(request, response); end
|
|
2602
|
+
|
|
2603
|
+
# source://httpx//lib/httpx/session.rb#79
|
|
2604
|
+
def pool; end
|
|
2605
|
+
|
|
2606
|
+
# source://httpx//lib/httpx/session.rb#240
|
|
2607
|
+
def receive_requests(requests, connections); end
|
|
2608
|
+
|
|
2609
|
+
# source://httpx//lib/httpx/session.rb#219
|
|
2610
|
+
def send_requests(*requests); end
|
|
2611
|
+
|
|
2612
|
+
# source://httpx//lib/httpx/session.rb#107
|
|
2613
|
+
def set_connection_callbacks(connection, connections, options); end
|
|
2614
|
+
|
|
2615
|
+
class << self
|
|
2616
|
+
# Returns the value of attribute default_options.
|
|
2617
|
+
#
|
|
2618
|
+
# source://httpx//lib/httpx/session.rb#284
|
|
2619
|
+
def default_options; end
|
|
2620
|
+
|
|
2621
|
+
# @private
|
|
2622
|
+
#
|
|
2623
|
+
# source://httpx//lib/httpx/session.rb#286
|
|
2624
|
+
def inherited(klass); end
|
|
2625
|
+
|
|
2626
|
+
# source://httpx//lib/httpx/session.rb#293
|
|
2627
|
+
def plugin(pl, options = T.unsafe(nil), &block); end
|
|
2628
|
+
|
|
2629
|
+
# :nocov:
|
|
2630
|
+
#
|
|
2631
|
+
# source://httpx//lib/httpx/session.rb#344
|
|
2632
|
+
def plugins(pls); end
|
|
2633
|
+
end
|
|
2634
|
+
end
|
|
2635
|
+
|
|
2636
|
+
# source://httpx//lib/httpx/session.rb#9
|
|
2637
|
+
HTTPX::Session::EMPTY_HASH = T.let(T.unsafe(nil), Hash)
|
|
2638
|
+
|
|
2639
|
+
# source://httpx//lib/httpx/errors.rb#47
|
|
2640
|
+
class HTTPX::SettingsTimeoutError < ::HTTPX::TimeoutError; end
|
|
2641
|
+
|
|
2642
|
+
# source://httpx//lib/httpx/extensions.rb#66
|
|
2643
|
+
module HTTPX::StringExtensions; end
|
|
2644
|
+
|
|
2645
|
+
# source://httpx//lib/httpx/io/tcp.rb#7
|
|
2646
|
+
class HTTPX::TCP
|
|
2647
|
+
include ::HTTPX::Loggable
|
|
2648
|
+
|
|
2649
|
+
# @return [TCP] a new instance of TCP
|
|
2650
|
+
#
|
|
2651
|
+
# source://httpx//lib/httpx/io/tcp.rb#16
|
|
2652
|
+
def initialize(origin, addresses, options); end
|
|
2653
|
+
|
|
2654
|
+
# source://httpx//lib/httpx/io/tcp.rb#47
|
|
2655
|
+
def add_addresses(addrs); end
|
|
2656
|
+
|
|
2657
|
+
# Returns the value of attribute addresses.
|
|
2658
|
+
#
|
|
2659
|
+
# source://httpx//lib/httpx/io/tcp.rb#12
|
|
2660
|
+
def addresses; end
|
|
2661
|
+
|
|
2662
|
+
# source://httpx//lib/httpx/io/tcp.rb#177
|
|
2663
|
+
def close; end
|
|
2664
|
+
|
|
2665
|
+
# @return [Boolean]
|
|
2666
|
+
#
|
|
2667
|
+
# source://httpx//lib/httpx/io/tcp.rb#191
|
|
2668
|
+
def closed?; end
|
|
2669
|
+
|
|
2670
|
+
# source://httpx//lib/httpx/io/tcp.rb#70
|
|
2671
|
+
def connect; end
|
|
2672
|
+
|
|
2673
|
+
# @return [Boolean]
|
|
2674
|
+
#
|
|
2675
|
+
# source://httpx//lib/httpx/io/tcp.rb#187
|
|
2676
|
+
def connected?; end
|
|
2677
|
+
|
|
2678
|
+
# Returns the value of attribute ip.
|
|
2679
|
+
#
|
|
2680
|
+
# source://httpx//lib/httpx/io/tcp.rb#12
|
|
2681
|
+
def host; end
|
|
2682
|
+
|
|
2683
|
+
# :nocov:
|
|
2684
|
+
#
|
|
2685
|
+
# source://httpx//lib/httpx/io/tcp.rb#196
|
|
2686
|
+
def inspect; end
|
|
2687
|
+
|
|
2688
|
+
# Returns the value of attribute interests.
|
|
2689
|
+
#
|
|
2690
|
+
# source://httpx//lib/httpx/io/tcp.rb#12
|
|
2691
|
+
def interests; end
|
|
2692
|
+
|
|
2693
|
+
# Returns the value of attribute ip.
|
|
2694
|
+
#
|
|
2695
|
+
# source://httpx//lib/httpx/io/tcp.rb#12
|
|
2696
|
+
def ip; end
|
|
2697
|
+
|
|
2698
|
+
# Returns the value of attribute port.
|
|
2699
|
+
#
|
|
2700
|
+
# source://httpx//lib/httpx/io/tcp.rb#12
|
|
2701
|
+
def port; end
|
|
2702
|
+
|
|
2703
|
+
# source://httpx//lib/httpx/io/tcp.rb#66
|
|
2704
|
+
def protocol; end
|
|
2705
|
+
|
|
2706
|
+
# source://httpx//lib/httpx/io/tcp.rb#153
|
|
2707
|
+
def read(size, buffer); end
|
|
2708
|
+
|
|
2709
|
+
# source://httpx//lib/httpx/io/tcp.rb#43
|
|
2710
|
+
def socket; end
|
|
2711
|
+
|
|
2712
|
+
# Returns the value of attribute state.
|
|
2713
|
+
#
|
|
2714
|
+
# source://httpx//lib/httpx/io/tcp.rb#12
|
|
2715
|
+
def state; end
|
|
2716
|
+
|
|
2717
|
+
# source://httpx//lib/httpx/io/tcp.rb#62
|
|
2718
|
+
def to_io; end
|
|
2719
|
+
|
|
2720
|
+
# source://httpx//lib/httpx/io/tcp.rb#165
|
|
2721
|
+
def write(buffer); end
|
|
2722
|
+
|
|
2723
|
+
private
|
|
2724
|
+
|
|
2725
|
+
# source://httpx//lib/httpx/io/tcp.rb#203
|
|
2726
|
+
def build_socket; end
|
|
2727
|
+
|
|
2728
|
+
# source://httpx//lib/httpx/io/tcp.rb#219
|
|
2729
|
+
def do_transition(nextstate); end
|
|
2730
|
+
|
|
2731
|
+
# source://httpx//lib/httpx/io/tcp.rb#224
|
|
2732
|
+
def log_transition_state(nextstate); end
|
|
2733
|
+
|
|
2734
|
+
# source://httpx//lib/httpx/io/tcp.rb#208
|
|
2735
|
+
def transition(nextstate); end
|
|
2736
|
+
|
|
2737
|
+
# :nocov:
|
|
2738
|
+
#
|
|
2739
|
+
# source://httpx//lib/httpx/io/tcp.rb#137
|
|
2740
|
+
def try_connect; end
|
|
2741
|
+
end
|
|
2742
|
+
|
|
2743
|
+
# source://httpx//lib/httpx/io/ssl.rb#6
|
|
2744
|
+
HTTPX::TLSError = OpenSSL::SSL::SSLError
|
|
2745
|
+
|
|
2746
|
+
# source://httpx//lib/httpx/errors.rb#10
|
|
2747
|
+
class HTTPX::TimeoutError < ::HTTPX::Error
|
|
2748
|
+
# @return [TimeoutError] a new instance of TimeoutError
|
|
2749
|
+
#
|
|
2750
|
+
# source://httpx//lib/httpx/errors.rb#13
|
|
2751
|
+
def initialize(timeout, message); end
|
|
2752
|
+
|
|
2753
|
+
# Returns the value of attribute timeout.
|
|
2754
|
+
#
|
|
2755
|
+
# source://httpx//lib/httpx/errors.rb#11
|
|
2756
|
+
def timeout; end
|
|
2757
|
+
|
|
2758
|
+
# source://httpx//lib/httpx/errors.rb#18
|
|
2759
|
+
def to_connection_error; end
|
|
2760
|
+
end
|
|
2761
|
+
|
|
2762
|
+
# source://httpx//lib/httpx/timers.rb#4
|
|
2763
|
+
class HTTPX::Timers
|
|
2764
|
+
# @return [Timers] a new instance of Timers
|
|
2765
|
+
#
|
|
2766
|
+
# source://httpx//lib/httpx/timers.rb#5
|
|
2767
|
+
def initialize; end
|
|
2768
|
+
|
|
2769
|
+
# source://httpx//lib/httpx/timers.rb#9
|
|
2770
|
+
def after(interval_in_secs, &blk); end
|
|
2771
|
+
|
|
2772
|
+
# source://httpx//lib/httpx/timers.rb#44
|
|
2773
|
+
def cancel; end
|
|
2774
|
+
|
|
2775
|
+
# source://httpx//lib/httpx/timers.rb#33
|
|
2776
|
+
def fire(error = T.unsafe(nil)); end
|
|
2777
|
+
|
|
2778
|
+
# source://httpx//lib/httpx/timers.rb#25
|
|
2779
|
+
def wait_interval; end
|
|
2780
|
+
end
|
|
2781
|
+
|
|
2782
|
+
# source://httpx//lib/httpx/timers.rb#49
|
|
2783
|
+
class HTTPX::Timers::Interval
|
|
2784
|
+
include ::Comparable
|
|
2785
|
+
|
|
2786
|
+
# @return [Interval] a new instance of Interval
|
|
2787
|
+
#
|
|
2788
|
+
# source://httpx//lib/httpx/timers.rb#54
|
|
2789
|
+
def initialize(interval); end
|
|
2790
|
+
|
|
2791
|
+
# source://httpx//lib/httpx/timers.rb#73
|
|
2792
|
+
def <<(callback); end
|
|
2793
|
+
|
|
2794
|
+
# source://httpx//lib/httpx/timers.rb#59
|
|
2795
|
+
def <=>(other); end
|
|
2796
|
+
|
|
2797
|
+
# source://httpx//lib/httpx/timers.rb#63
|
|
2798
|
+
def ==(other); end
|
|
2799
|
+
|
|
2800
|
+
# source://httpx//lib/httpx/timers.rb#77
|
|
2801
|
+
def elapse(elapsed); end
|
|
2802
|
+
|
|
2803
|
+
# Returns the value of attribute interval.
|
|
2804
|
+
#
|
|
2805
|
+
# source://httpx//lib/httpx/timers.rb#52
|
|
2806
|
+
def interval; end
|
|
2807
|
+
|
|
2808
|
+
# source://httpx//lib/httpx/timers.rb#69
|
|
2809
|
+
def to_f; end
|
|
2810
|
+
end
|
|
2811
|
+
|
|
2812
|
+
# source://httpx//lib/httpx/errors.rb#25
|
|
2813
|
+
class HTTPX::TotalTimeoutError < ::HTTPX::TimeoutError; end
|
|
2814
|
+
|
|
2815
|
+
# source://httpx//lib/httpx/transcoder.rb#4
|
|
2816
|
+
module HTTPX::Transcoder
|
|
2817
|
+
private
|
|
2818
|
+
|
|
2819
|
+
# source://httpx//lib/httpx/transcoder.rb#9
|
|
2820
|
+
def normalize_keys(key, value, cond = T.unsafe(nil), &block); end
|
|
2821
|
+
|
|
2822
|
+
# based on https://github.com/rack/rack/blob/d15dd728440710cfc35ed155d66a98dc2c07ae42/lib/rack/query_parser.rb#L82
|
|
2823
|
+
#
|
|
2824
|
+
# source://httpx//lib/httpx/transcoder.rb#30
|
|
2825
|
+
def normalize_query(params, name, v, depth); end
|
|
2826
|
+
|
|
2827
|
+
# source://httpx//lib/httpx/transcoder.rb#73
|
|
2828
|
+
def params_hash_has_key?(hash, key); end
|
|
2829
|
+
|
|
2830
|
+
class << self
|
|
2831
|
+
# source://httpx//lib/httpx/transcoder.rb#9
|
|
2832
|
+
def normalize_keys(key, value, cond = T.unsafe(nil), &block); end
|
|
2833
|
+
|
|
2834
|
+
# based on https://github.com/rack/rack/blob/d15dd728440710cfc35ed155d66a98dc2c07ae42/lib/rack/query_parser.rb#L82
|
|
2835
|
+
#
|
|
2836
|
+
# @raise [Error]
|
|
2837
|
+
#
|
|
2838
|
+
# source://httpx//lib/httpx/transcoder.rb#30
|
|
2839
|
+
def normalize_query(params, name, v, depth); end
|
|
2840
|
+
|
|
2841
|
+
# @return [Boolean]
|
|
2842
|
+
#
|
|
2843
|
+
# source://httpx//lib/httpx/transcoder.rb#73
|
|
2844
|
+
def params_hash_has_key?(hash, key); end
|
|
2845
|
+
end
|
|
2846
|
+
end
|
|
2847
|
+
|
|
2848
|
+
# source://httpx//lib/httpx/transcoder/body.rb#6
|
|
2849
|
+
module HTTPX::Transcoder::Body
|
|
2850
|
+
private
|
|
2851
|
+
|
|
2852
|
+
# source://httpx//lib/httpx/transcoder/body.rb#54
|
|
2853
|
+
def encode(body); end
|
|
2854
|
+
|
|
2855
|
+
class << self
|
|
2856
|
+
# source://httpx//lib/httpx/transcoder/body.rb#54
|
|
2857
|
+
def encode(body); end
|
|
2858
|
+
end
|
|
2859
|
+
end
|
|
2860
|
+
|
|
2861
|
+
# source://httpx//lib/httpx/transcoder/body.rb#11
|
|
2862
|
+
class HTTPX::Transcoder::Body::Encoder
|
|
2863
|
+
extend ::Forwardable
|
|
2864
|
+
|
|
2865
|
+
# @return [Encoder] a new instance of Encoder
|
|
2866
|
+
#
|
|
2867
|
+
# source://httpx//lib/httpx/transcoder/body.rb#17
|
|
2868
|
+
def initialize(body); end
|
|
2869
|
+
|
|
2870
|
+
# source://httpx//lib/httpx/transcoder/body.rb#21
|
|
2871
|
+
def bytesize; end
|
|
2872
|
+
|
|
2873
|
+
# source://httpx//lib/httpx/transcoder/body.rb#37
|
|
2874
|
+
def content_type; end
|
|
2875
|
+
|
|
2876
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2877
|
+
def to_s(*args, **_arg1, &block); end
|
|
2878
|
+
|
|
2879
|
+
private
|
|
2880
|
+
|
|
2881
|
+
# source://httpx//lib/httpx/transcoder/body.rb#47
|
|
2882
|
+
def method_missing(meth, *args, &block); end
|
|
2883
|
+
|
|
2884
|
+
# @return [Boolean]
|
|
2885
|
+
#
|
|
2886
|
+
# source://httpx//lib/httpx/transcoder/body.rb#43
|
|
2887
|
+
def respond_to_missing?(meth, *args); end
|
|
2888
|
+
end
|
|
2889
|
+
|
|
2890
|
+
# source://httpx//lib/httpx/transcoder/body.rb#7
|
|
2891
|
+
class HTTPX::Transcoder::Body::Error < ::HTTPX::Error; end
|
|
2892
|
+
|
|
2893
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#6
|
|
2894
|
+
module HTTPX::Transcoder::Chunker
|
|
2895
|
+
private
|
|
2896
|
+
|
|
2897
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#111
|
|
2898
|
+
def encode(chunks); end
|
|
2899
|
+
|
|
2900
|
+
class << self
|
|
2901
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#111
|
|
2902
|
+
def encode(chunks); end
|
|
2903
|
+
end
|
|
2904
|
+
end
|
|
2905
|
+
|
|
2906
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#9
|
|
2907
|
+
HTTPX::Transcoder::Chunker::CRLF = T.let(T.unsafe(nil), String)
|
|
2908
|
+
|
|
2909
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#32
|
|
2910
|
+
class HTTPX::Transcoder::Chunker::Decoder
|
|
2911
|
+
extend ::Forwardable
|
|
2912
|
+
|
|
2913
|
+
# @return [Decoder] a new instance of Decoder
|
|
2914
|
+
#
|
|
2915
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#41
|
|
2916
|
+
def initialize(buffer, trailers = T.unsafe(nil)); end
|
|
2917
|
+
|
|
2918
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2919
|
+
def <<(*args, **_arg1, &block); end
|
|
2920
|
+
|
|
2921
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2922
|
+
def clear(*args, **_arg1, &block); end
|
|
2923
|
+
|
|
2924
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#53
|
|
2925
|
+
def each; end
|
|
2926
|
+
|
|
2927
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
2928
|
+
def empty?(*args, **_arg1, &block); end
|
|
2929
|
+
|
|
2930
|
+
# @return [Boolean]
|
|
2931
|
+
#
|
|
2932
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#98
|
|
2933
|
+
def finished?; end
|
|
2934
|
+
|
|
2935
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#49
|
|
2936
|
+
def to_s; end
|
|
2937
|
+
|
|
2938
|
+
private
|
|
2939
|
+
|
|
2940
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#104
|
|
2941
|
+
def nextstate(state); end
|
|
2942
|
+
end
|
|
2943
|
+
|
|
2944
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#11
|
|
2945
|
+
class HTTPX::Transcoder::Chunker::Encoder
|
|
2946
|
+
extend ::Forwardable
|
|
2947
|
+
|
|
2948
|
+
# @return [Encoder] a new instance of Encoder
|
|
2949
|
+
#
|
|
2950
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#14
|
|
2951
|
+
def initialize(body); end
|
|
2952
|
+
|
|
2953
|
+
# @yield ["0#{CRLF}"]
|
|
2954
|
+
#
|
|
2955
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#18
|
|
2956
|
+
def each; end
|
|
2957
|
+
|
|
2958
|
+
private
|
|
2959
|
+
|
|
2960
|
+
# @return [Boolean]
|
|
2961
|
+
#
|
|
2962
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#27
|
|
2963
|
+
def respond_to_missing?(meth, *args); end
|
|
2964
|
+
end
|
|
2965
|
+
|
|
2966
|
+
# source://httpx//lib/httpx/transcoder/chunker.rb#7
|
|
2967
|
+
class HTTPX::Transcoder::Chunker::Error < ::HTTPX::Error; end
|
|
2968
|
+
|
|
2969
|
+
# source://httpx//lib/httpx/transcoder/form.rb#7
|
|
2970
|
+
module HTTPX::Transcoder::Form
|
|
2971
|
+
private
|
|
2972
|
+
|
|
2973
|
+
# source://httpx//lib/httpx/transcoder/form.rb#50
|
|
2974
|
+
def decode(response); end
|
|
2975
|
+
|
|
2976
|
+
# source://httpx//lib/httpx/transcoder/form.rb#46
|
|
2977
|
+
def encode(form); end
|
|
2978
|
+
|
|
2979
|
+
class << self
|
|
2980
|
+
# @raise [HTTPX::Error]
|
|
2981
|
+
#
|
|
2982
|
+
# source://httpx//lib/httpx/transcoder/form.rb#50
|
|
2983
|
+
def decode(response); end
|
|
2984
|
+
|
|
2985
|
+
# source://httpx//lib/httpx/transcoder/form.rb#46
|
|
2986
|
+
def encode(form); end
|
|
2987
|
+
end
|
|
2988
|
+
end
|
|
2989
|
+
|
|
2990
|
+
# source://httpx//lib/httpx/transcoder/form.rb#36
|
|
2991
|
+
module HTTPX::Transcoder::Form::Decoder
|
|
2992
|
+
private
|
|
2993
|
+
|
|
2994
|
+
# source://httpx//lib/httpx/transcoder/form.rb#39
|
|
2995
|
+
def call(response, *_arg1); end
|
|
2996
|
+
|
|
2997
|
+
class << self
|
|
2998
|
+
# source://httpx//lib/httpx/transcoder/form.rb#39
|
|
2999
|
+
def call(response, *_arg1); end
|
|
3000
|
+
end
|
|
3001
|
+
end
|
|
3002
|
+
|
|
3003
|
+
# source://httpx//lib/httpx/transcoder/form.rb#12
|
|
3004
|
+
class HTTPX::Transcoder::Form::Encoder
|
|
3005
|
+
extend ::Forwardable
|
|
3006
|
+
|
|
3007
|
+
# @return [Encoder] a new instance of Encoder
|
|
3008
|
+
#
|
|
3009
|
+
# source://httpx//lib/httpx/transcoder/form.rb#21
|
|
3010
|
+
def initialize(form); end
|
|
3011
|
+
|
|
3012
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3013
|
+
def bytesize(*args, **_arg1, &block); end
|
|
3014
|
+
|
|
3015
|
+
# source://httpx//lib/httpx/transcoder/form.rb#31
|
|
3016
|
+
def content_type; end
|
|
3017
|
+
|
|
3018
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3019
|
+
def to_s(*args, **_arg1, &block); end
|
|
3020
|
+
|
|
3021
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3022
|
+
def to_str(*args, **_arg1, &block); end
|
|
3023
|
+
end
|
|
3024
|
+
|
|
3025
|
+
# source://httpx//lib/httpx/transcoder/form.rb#10
|
|
3026
|
+
HTTPX::Transcoder::Form::PARAM_DEPTH_LIMIT = T.let(T.unsafe(nil), Integer)
|
|
3027
|
+
|
|
3028
|
+
# source://httpx//lib/httpx/transcoder/json.rb#6
|
|
3029
|
+
module HTTPX::Transcoder::JSON
|
|
3030
|
+
private
|
|
3031
|
+
|
|
3032
|
+
# source://httpx//lib/httpx/transcoder/json.rb#34
|
|
3033
|
+
def decode(response); end
|
|
3034
|
+
|
|
3035
|
+
# source://httpx//lib/httpx/transcoder/json.rb#30
|
|
3036
|
+
def encode(json); end
|
|
3037
|
+
|
|
3038
|
+
# source://httpx//lib/httpx/transcoder/json.rb#55
|
|
3039
|
+
def json_dump(*args); end
|
|
3040
|
+
|
|
3041
|
+
# source://httpx//lib/httpx/transcoder/json.rb#54
|
|
3042
|
+
def json_load(*args); end
|
|
3043
|
+
|
|
3044
|
+
class << self
|
|
3045
|
+
# @raise [HTTPX::Error]
|
|
3046
|
+
#
|
|
3047
|
+
# source://httpx//lib/httpx/transcoder/json.rb#34
|
|
3048
|
+
def decode(response); end
|
|
3049
|
+
|
|
3050
|
+
# source://httpx//lib/httpx/transcoder/json.rb#30
|
|
3051
|
+
def encode(json); end
|
|
3052
|
+
|
|
3053
|
+
# source://httpx//lib/httpx/transcoder/json.rb#55
|
|
3054
|
+
def json_dump(*args); end
|
|
3055
|
+
|
|
3056
|
+
# source://httpx//lib/httpx/transcoder/json.rb#54
|
|
3057
|
+
def json_load(*args); end
|
|
3058
|
+
end
|
|
3059
|
+
end
|
|
3060
|
+
|
|
3061
|
+
# source://httpx//lib/httpx/transcoder/json.rb#13
|
|
3062
|
+
class HTTPX::Transcoder::JSON::Encoder
|
|
3063
|
+
extend ::Forwardable
|
|
3064
|
+
|
|
3065
|
+
# @return [Encoder] a new instance of Encoder
|
|
3066
|
+
#
|
|
3067
|
+
# source://httpx//lib/httpx/transcoder/json.rb#20
|
|
3068
|
+
def initialize(json); end
|
|
3069
|
+
|
|
3070
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3071
|
+
def bytesize(*args, **_arg1, &block); end
|
|
3072
|
+
|
|
3073
|
+
# source://httpx//lib/httpx/transcoder/json.rb#25
|
|
3074
|
+
def content_type; end
|
|
3075
|
+
|
|
3076
|
+
# source://forwardable/1.3.3/forwardable.rb#231
|
|
3077
|
+
def to_s(*args, **_arg1, &block); end
|
|
3078
|
+
end
|
|
3079
|
+
|
|
3080
|
+
# source://httpx//lib/httpx/transcoder/json.rb#7
|
|
3081
|
+
HTTPX::Transcoder::JSON::JSON_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
3082
|
+
|
|
3083
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#8
|
|
3084
|
+
module HTTPX::Transcoder::Xml
|
|
3085
|
+
private
|
|
3086
|
+
|
|
3087
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#49
|
|
3088
|
+
def decode(_response); end
|
|
3089
|
+
|
|
3090
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#34
|
|
3091
|
+
def encode(xml); end
|
|
3092
|
+
|
|
3093
|
+
class << self
|
|
3094
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#49
|
|
3095
|
+
def decode(_response); end
|
|
3096
|
+
|
|
3097
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#34
|
|
3098
|
+
def encode(xml); end
|
|
3099
|
+
end
|
|
3100
|
+
end
|
|
3101
|
+
|
|
3102
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#15
|
|
3103
|
+
class HTTPX::Transcoder::Xml::Encoder
|
|
3104
|
+
# @return [Encoder] a new instance of Encoder
|
|
3105
|
+
#
|
|
3106
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#16
|
|
3107
|
+
def initialize(xml); end
|
|
3108
|
+
|
|
3109
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#25
|
|
3110
|
+
def bytesize; end
|
|
3111
|
+
|
|
3112
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#20
|
|
3113
|
+
def content_type; end
|
|
3114
|
+
|
|
3115
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#29
|
|
3116
|
+
def to_s; end
|
|
3117
|
+
end
|
|
3118
|
+
|
|
3119
|
+
# source://httpx//lib/httpx/transcoder/xml.rb#13
|
|
3120
|
+
HTTPX::Transcoder::Xml::MIME_TYPES = T.let(T.unsafe(nil), Regexp)
|
|
3121
|
+
|
|
3122
|
+
# source://httpx//lib/httpx/io/udp.rb#6
|
|
3123
|
+
class HTTPX::UDP
|
|
3124
|
+
include ::HTTPX::Loggable
|
|
3125
|
+
|
|
3126
|
+
# @return [UDP] a new instance of UDP
|
|
3127
|
+
#
|
|
3128
|
+
# source://httpx//lib/httpx/io/udp.rb#9
|
|
3129
|
+
def initialize(ip, port, options); end
|
|
3130
|
+
|
|
3131
|
+
# :nocov:
|
|
3132
|
+
#
|
|
3133
|
+
# source://httpx//lib/httpx/io/udp.rb#35
|
|
3134
|
+
def close; end
|
|
3135
|
+
|
|
3136
|
+
# source://httpx//lib/httpx/io/udp.rb#20
|
|
3137
|
+
def connect; end
|
|
3138
|
+
|
|
3139
|
+
# @return [Boolean]
|
|
3140
|
+
#
|
|
3141
|
+
# source://httpx//lib/httpx/io/udp.rb#22
|
|
3142
|
+
def connected?; end
|
|
3143
|
+
|
|
3144
|
+
# source://httpx//lib/httpx/io/udp.rb#76
|
|
3145
|
+
def read(size, buffer); end
|
|
3146
|
+
|
|
3147
|
+
# source://httpx//lib/httpx/io/udp.rb#16
|
|
3148
|
+
def to_io; end
|
|
3149
|
+
|
|
3150
|
+
# In JRuby, sendmsg_nonblock is not implemented
|
|
3151
|
+
#
|
|
3152
|
+
# source://httpx//lib/httpx/io/udp.rb#65
|
|
3153
|
+
def write(buffer); end
|
|
3154
|
+
end
|
|
3155
|
+
|
|
3156
|
+
# source://httpx//lib/httpx/io/unix.rb#4
|
|
3157
|
+
class HTTPX::UNIX < ::HTTPX::TCP
|
|
3158
|
+
# @return [UNIX] a new instance of UNIX
|
|
3159
|
+
#
|
|
3160
|
+
# source://httpx//lib/httpx/io/unix.rb#11
|
|
3161
|
+
def initialize(origin, addresses, options); end
|
|
3162
|
+
|
|
3163
|
+
# source://httpx//lib/httpx/io/unix.rb#42
|
|
3164
|
+
def connect; end
|
|
3165
|
+
|
|
3166
|
+
# Returns the value of attribute path.
|
|
3167
|
+
#
|
|
3168
|
+
# source://httpx//lib/httpx/io/unix.rb#7
|
|
3169
|
+
def host; end
|
|
3170
|
+
|
|
3171
|
+
# :nocov:
|
|
3172
|
+
#
|
|
3173
|
+
# source://httpx//lib/httpx/io/unix.rb#60
|
|
3174
|
+
def inspect; end
|
|
3175
|
+
|
|
3176
|
+
# Returns the value of attribute path.
|
|
3177
|
+
#
|
|
3178
|
+
# source://httpx//lib/httpx/io/unix.rb#7
|
|
3179
|
+
def path; end
|
|
3180
|
+
|
|
3181
|
+
private
|
|
3182
|
+
|
|
3183
|
+
# source://httpx//lib/httpx/io/unix.rb#67
|
|
3184
|
+
def build_socket; end
|
|
3185
|
+
end
|
|
3186
|
+
|
|
3187
|
+
# source://httpx//lib/httpx/extensions.rb#160
|
|
3188
|
+
module HTTPX::URIExtensions; end
|
|
3189
|
+
|
|
3190
|
+
# source://httpx//lib/httpx/errors.rb#6
|
|
3191
|
+
class HTTPX::UnsupportedSchemeError < ::HTTPX::Error; end
|
|
3192
|
+
|
|
3193
|
+
# source://httpx//lib/httpx/utils.rb#4
|
|
3194
|
+
module HTTPX::Utils
|
|
3195
|
+
private
|
|
3196
|
+
|
|
3197
|
+
# source://httpx//lib/httpx/utils.rb#19
|
|
3198
|
+
def elapsed_time(monotonic_timestamp); end
|
|
3199
|
+
|
|
3200
|
+
# source://httpx//lib/httpx/utils.rb#34
|
|
3201
|
+
def get_filename(header, _prefix_regex = T.unsafe(nil)); end
|
|
3202
|
+
|
|
3203
|
+
# source://httpx//lib/httpx/utils.rb#15
|
|
3204
|
+
def now; end
|
|
3205
|
+
|
|
3206
|
+
# The value of this field can be either an HTTP-date or a number of
|
|
3207
|
+
# seconds to delay after the response is received.
|
|
3208
|
+
#
|
|
3209
|
+
# source://httpx//lib/httpx/utils.rb#25
|
|
3210
|
+
def parse_retry_after(retry_after); end
|
|
3211
|
+
|
|
3212
|
+
# source://httpx//lib/httpx/utils.rb#68
|
|
3213
|
+
def to_uri(uri); end
|
|
3214
|
+
|
|
3215
|
+
class << self
|
|
3216
|
+
# source://httpx//lib/httpx/utils.rb#19
|
|
3217
|
+
def elapsed_time(monotonic_timestamp); end
|
|
3218
|
+
|
|
3219
|
+
# source://httpx//lib/httpx/utils.rb#34
|
|
3220
|
+
def get_filename(header, _prefix_regex = T.unsafe(nil)); end
|
|
3221
|
+
|
|
3222
|
+
# source://httpx//lib/httpx/utils.rb#15
|
|
3223
|
+
def now; end
|
|
3224
|
+
|
|
3225
|
+
# The value of this field can be either an HTTP-date or a number of
|
|
3226
|
+
# seconds to delay after the response is received.
|
|
3227
|
+
#
|
|
3228
|
+
# source://httpx//lib/httpx/utils.rb#25
|
|
3229
|
+
def parse_retry_after(retry_after); end
|
|
3230
|
+
|
|
3231
|
+
# source://httpx//lib/httpx/utils.rb#68
|
|
3232
|
+
def to_uri(uri); end
|
|
3233
|
+
end
|
|
3234
|
+
end
|
|
3235
|
+
|
|
3236
|
+
# source://httpx//lib/httpx/utils.rb#11
|
|
3237
|
+
HTTPX::Utils::FILENAME_EXTENSION_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
3238
|
+
|
|
3239
|
+
# source://httpx//lib/httpx/utils.rb#10
|
|
3240
|
+
HTTPX::Utils::FILENAME_REGEX = T.let(T.unsafe(nil), Regexp)
|
|
3241
|
+
|
|
3242
|
+
# source://httpx//lib/httpx/utils.rb#8
|
|
3243
|
+
HTTPX::Utils::TOKEN = T.let(T.unsafe(nil), Regexp)
|
|
3244
|
+
|
|
3245
|
+
# source://httpx//lib/httpx/utils.rb#66
|
|
3246
|
+
HTTPX::Utils::URIParser = T.let(T.unsafe(nil), URI::RFC2396_Parser)
|
|
3247
|
+
|
|
3248
|
+
# source://httpx//lib/httpx/utils.rb#9
|
|
3249
|
+
HTTPX::Utils::VALUE = T.let(T.unsafe(nil), Regexp)
|
|
3250
|
+
|
|
3251
|
+
# source://httpx//lib/httpx/version.rb#4
|
|
3252
|
+
HTTPX::VERSION = T.let(T.unsafe(nil), String)
|
|
3253
|
+
|
|
3254
|
+
# source://httpx//lib/httpx/errors.rb#45
|
|
3255
|
+
class HTTPX::WriteTimeoutError < ::HTTPX::RequestTimeoutError; end
|