parking_ticket 1.0.47 → 1.0.49

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +4 -0
  3. data/.vscode/settings.json +3 -0
  4. data/Gemfile +0 -15
  5. data/Gemfile.lock +72 -4
  6. data/Rakefile +2 -2
  7. data/bin/console +3 -3
  8. data/bin/tapioca +29 -0
  9. data/lib/clients/models/payment_method.rb +15 -0
  10. data/lib/clients/models/quote.rb +16 -0
  11. data/lib/clients/models/rate_option.rb +19 -0
  12. data/lib/clients/models/structuraly_comparable.rb +14 -0
  13. data/lib/clients/models/ticket.rb +19 -0
  14. data/lib/clients/models/vehicle.rb +17 -0
  15. data/lib/clients/pay_by_phone/adapter.rb +106 -50
  16. data/lib/clients/pay_by_phone/client.rb +101 -38
  17. data/lib/parking_ticket/configuration.rb +3 -0
  18. data/lib/parking_ticket/version.rb +2 -1
  19. data/lib/parking_ticket.rb +79 -54
  20. data/sorbet/config +4 -0
  21. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  22. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  23. data/sorbet/rbi/annotations/webmock.rbi +9 -0
  24. data/sorbet/rbi/gems/addressable@2.8.1.rbi +2000 -0
  25. data/sorbet/rbi/gems/amazing_print@1.4.0.rbi +872 -0
  26. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  27. data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
  28. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  29. data/sorbet/rbi/gems/faraday-net_http@3.0.2.rbi +146 -0
  30. data/sorbet/rbi/gems/faraday@2.7.2.rbi +2518 -0
  31. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +350 -0
  32. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  33. data/sorbet/rbi/gems/json_matchers@0.11.1.rbi +133 -0
  34. data/sorbet/rbi/gems/json_schema@0.21.0.rbi +1165 -0
  35. data/sorbet/rbi/gems/netrc@0.11.0.rbi +161 -0
  36. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  37. data/sorbet/rbi/gems/parser@3.2.2.0.rbi +7207 -0
  38. data/sorbet/rbi/gems/public_suffix@5.0.1.rbi +940 -0
  39. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  40. data/sorbet/rbi/gems/rake@13.0.6.rbi +2881 -0
  41. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  42. data/sorbet/rbi/gems/regexp_parser@2.7.0.rbi +3600 -0
  43. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4823 -0
  44. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10826 -0
  45. data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +8118 -0
  46. data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +5300 -0
  47. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1615 -0
  48. data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
  49. data/sorbet/rbi/gems/rubocop-ast@1.28.0.rbi +6985 -0
  50. data/sorbet/rbi/gems/rubocop-sorbet@0.7.0.rbi +1043 -0
  51. data/sorbet/rbi/gems/rubocop@1.48.1.rbi +54934 -0
  52. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  53. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  54. data/sorbet/rbi/gems/spoom@1.2.1.rbi +2503 -0
  55. data/sorbet/rbi/gems/tapioca@0.11.4.rbi +3212 -0
  56. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  57. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
  58. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4515 -0
  59. data/sorbet/rbi/gems/vcr@6.1.0.rbi +3023 -0
  60. data/sorbet/rbi/gems/webmock@3.18.1.rbi +1728 -0
  61. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2584 -0
  62. data/sorbet/rbi/gems/yard-sorbet@0.8.0.rbi +441 -0
  63. data/sorbet/rbi/gems/yard@0.9.28.rbi +17802 -0
  64. data/sorbet/tapioca/config.yml +13 -0
  65. data/sorbet/tapioca/require.rb +4 -0
  66. metadata +241 -4
  67. data/lib/clients/adapter.rb +0 -75
@@ -0,0 +1,2518 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `faraday` gem.
5
+ # Please instead update this file by running `bin/tapioca gem faraday`.
6
+
7
+ # conn.get '/'
8
+ #
9
+ # source://faraday//lib/faraday/version.rb#3
10
+ module Faraday
11
+ class << self
12
+ # @overload default_adapter
13
+ # @overload default_adapter=
14
+ #
15
+ # source://faraday//lib/faraday.rb#55
16
+ def default_adapter; end
17
+
18
+ # Documented elsewhere, see default_adapter reader
19
+ #
20
+ # source://faraday//lib/faraday.rb#102
21
+ def default_adapter=(adapter); end
22
+
23
+ # Option for the default_adapter
24
+ # @return [Hash] default_adapter options
25
+ #
26
+ # source://faraday//lib/faraday.rb#59
27
+ def default_adapter_options; end
28
+
29
+ # Option for the default_adapter
30
+ # @return [Hash] default_adapter options
31
+ #
32
+ # source://faraday//lib/faraday.rb#59
33
+ def default_adapter_options=(_arg0); end
34
+
35
+ # @overload default_connection
36
+ # @overload default_connection=
37
+ #
38
+ # source://faraday//lib/faraday.rb#120
39
+ def default_connection; end
40
+
41
+ # Documented below, see default_connection
42
+ #
43
+ # source://faraday//lib/faraday.rb#62
44
+ def default_connection=(_arg0); end
45
+
46
+ # Gets the default connection options used when calling {Faraday#new}.
47
+ #
48
+ # @return [Faraday::ConnectionOptions]
49
+ #
50
+ # source://faraday//lib/faraday.rb#127
51
+ def default_connection_options; end
52
+
53
+ # Sets the default options used when calling {Faraday#new}.
54
+ #
55
+ # @param options [Hash, Faraday::ConnectionOptions]
56
+ #
57
+ # source://faraday//lib/faraday.rb#134
58
+ def default_connection_options=(options); end
59
+
60
+ # Tells Faraday to ignore the environment proxy (http_proxy).
61
+ # Defaults to `false`.
62
+ #
63
+ # @return [Boolean]
64
+ #
65
+ # source://faraday//lib/faraday.rb#67
66
+ def ignore_env_proxy; end
67
+
68
+ # Tells Faraday to ignore the environment proxy (http_proxy).
69
+ # Defaults to `false`.
70
+ #
71
+ # @return [Boolean]
72
+ #
73
+ # source://faraday//lib/faraday.rb#67
74
+ def ignore_env_proxy=(_arg0); end
75
+
76
+ # Gets or sets the path that the Faraday libs are loaded from.
77
+ #
78
+ # @return [String]
79
+ #
80
+ # source://faraday//lib/faraday.rb#46
81
+ def lib_path; end
82
+
83
+ # Gets or sets the path that the Faraday libs are loaded from.
84
+ #
85
+ # @return [String]
86
+ #
87
+ # source://faraday//lib/faraday.rb#46
88
+ def lib_path=(_arg0); end
89
+
90
+ # Initializes a new {Connection}.
91
+ #
92
+ # @example With an URL argument
93
+ # Faraday.new 'http://faraday.com'
94
+ # # => Faraday::Connection to http://faraday.com
95
+ # @example With everything in an options hash
96
+ # Faraday.new url: 'http://faraday.com',
97
+ # params: { page: 1 }
98
+ # # => Faraday::Connection to http://faraday.com?page=1
99
+ # @example With an URL argument and an options hash
100
+ # Faraday.new 'http://faraday.com', params: { page: 1 }
101
+ # # => Faraday::Connection to http://faraday.com?page=1
102
+ # @option options
103
+ # @option options
104
+ # @option options
105
+ # @option options
106
+ # @option options
107
+ # @option options
108
+ # @param url [String, Hash] The optional String base URL to use as a prefix
109
+ # for all requests. Can also be the options Hash. Any of these
110
+ # values will be set on every request made, unless overridden
111
+ # for a specific request.
112
+ # @param options [Hash]
113
+ # @return [Faraday::Connection]
114
+ #
115
+ # source://faraday//lib/faraday.rb#96
116
+ def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end
117
+
118
+ # @return [Boolean]
119
+ #
120
+ # source://faraday//lib/faraday.rb#107
121
+ def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end
122
+
123
+ # The root path that Faraday is being loaded from.
124
+ #
125
+ # This is the root from where the libraries are auto-loaded.
126
+ #
127
+ # @return [String]
128
+ #
129
+ # source://faraday//lib/faraday.rb#42
130
+ def root_path; end
131
+
132
+ # The root path that Faraday is being loaded from.
133
+ #
134
+ # This is the root from where the libraries are auto-loaded.
135
+ #
136
+ # @return [String]
137
+ #
138
+ # source://faraday//lib/faraday.rb#42
139
+ def root_path=(_arg0); end
140
+
141
+ private
142
+
143
+ # Internal: Proxies method calls on the Faraday constant to
144
+ # .default_connection.
145
+ #
146
+ # source://faraday//lib/faraday.rb#143
147
+ def method_missing(name, *args, &block); end
148
+ end
149
+ end
150
+
151
+ # Base class for all Faraday adapters. Adapters are
152
+ # responsible for fulfilling a Faraday request.
153
+ #
154
+ # source://faraday//lib/faraday/adapter.rb#6
155
+ class Faraday::Adapter
156
+ extend ::Faraday::MiddlewareRegistry
157
+ extend ::Faraday::Adapter::Parallelism
158
+
159
+ # @return [Adapter] a new instance of Adapter
160
+ #
161
+ # source://faraday//lib/faraday/adapter.rb#28
162
+ def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end
163
+
164
+ # source://faraday//lib/faraday/adapter.rb#55
165
+ def call(env); end
166
+
167
+ # Close any persistent connections. The adapter should still be usable
168
+ # after calling close.
169
+ #
170
+ # source://faraday//lib/faraday/adapter.rb#50
171
+ def close; end
172
+
173
+ # Yields or returns an adapter's configured connection. Depends on
174
+ # #build_connection being defined on this adapter.
175
+ #
176
+ # @param env [Faraday::Env, Hash] The env object for a faraday request.
177
+ # @return The return value of the given block, or the HTTP connection object
178
+ # if no block is given.
179
+ # @yield [conn]
180
+ #
181
+ # source://faraday//lib/faraday/adapter.rb#41
182
+ def connection(env); end
183
+
184
+ private
185
+
186
+ # Fetches either a read, write, or open timeout setting. Defaults to the
187
+ # :timeout value if a more specific one is not given.
188
+ #
189
+ # @param type [Symbol] Describes which timeout setting to get: :read,
190
+ # :write, or :open.
191
+ # @param options [Hash] Hash containing Symbol keys like :timeout,
192
+ # :read_timeout, :write_timeout, or :open_timeout
193
+ # @return [Integer, nil] Timeout duration in seconds, or nil if no timeout
194
+ # has been set.
195
+ #
196
+ # source://faraday//lib/faraday/adapter.rb#85
197
+ def request_timeout(type, options); end
198
+
199
+ # source://faraday//lib/faraday/adapter.rb#62
200
+ def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil), finished: T.unsafe(nil)); end
201
+ end
202
+
203
+ # source://faraday//lib/faraday/adapter.rb#9
204
+ Faraday::Adapter::CONTENT_LENGTH = T.let(T.unsafe(nil), String)
205
+
206
+ # This module marks an Adapter as supporting parallel requests.
207
+ #
208
+ # source://faraday//lib/faraday/adapter.rb#12
209
+ module Faraday::Adapter::Parallelism
210
+ # source://faraday//lib/faraday/adapter.rb#19
211
+ def inherited(subclass); end
212
+
213
+ # Sets the attribute supports_parallel
214
+ #
215
+ # @param value the value to set the attribute supports_parallel to.
216
+ #
217
+ # source://faraday//lib/faraday/adapter.rb#13
218
+ def supports_parallel=(_arg0); end
219
+
220
+ # @return [Boolean]
221
+ #
222
+ # source://faraday//lib/faraday/adapter.rb#15
223
+ def supports_parallel?; end
224
+ end
225
+
226
+ # source://faraday//lib/faraday/adapter.rb#93
227
+ Faraday::Adapter::TIMEOUT_KEYS = T.let(T.unsafe(nil), Hash)
228
+
229
+ # @example
230
+ # test = Faraday::Connection.new do
231
+ # use Faraday::Adapter::Test do |stub|
232
+ # # Define matcher to match the request
233
+ # stub.get '/resource.json' do
234
+ # # return static content
235
+ # [200, {'Content-Type' => 'application/json'}, 'hi world']
236
+ # end
237
+ #
238
+ # # response with content generated based on request
239
+ # stub.get '/showget' do |env|
240
+ # [200, {'Content-Type' => 'text/plain'}, env[:method].to_s]
241
+ # end
242
+ #
243
+ # # A regular expression can be used as matching filter
244
+ # stub.get /\A\/items\/(\d+)\z/ do |env, meta|
245
+ # # in case regular expression is used, an instance of MatchData
246
+ # # can be received
247
+ # [200,
248
+ # {'Content-Type' => 'text/plain'},
249
+ # "showing item: #{meta[:match_data][1]}"
250
+ # ]
251
+ # end
252
+ #
253
+ # # Test the request body is the same as the stubbed body
254
+ # stub.post('/bar', 'name=YK&word=call') { [200, {}, ''] }
255
+ #
256
+ # # You can pass a proc as a stubbed body and check the request body in your way.
257
+ # # In this case, the proc should return true or false.
258
+ # stub.post('/foo', ->(request_body) do
259
+ # JSON.parse(request_body).slice('name') == { 'name' => 'YK' } }) { [200, {}, '']
260
+ # end
261
+ #
262
+ # # You can set strict_mode to exactly match the stubbed requests.
263
+ # stub.strict_mode = true
264
+ # end
265
+ # end
266
+ #
267
+ # resp = test.get '/resource.json'
268
+ # resp.body # => 'hi world'
269
+ #
270
+ # resp = test.get '/showget'
271
+ # resp.body # => 'get'
272
+ #
273
+ # resp = test.get '/items/1'
274
+ # resp.body # => 'showing item: 1'
275
+ #
276
+ # resp = test.get '/items/2'
277
+ # resp.body # => 'showing item: 2'
278
+ #
279
+ # resp = test.post '/bar', 'name=YK&word=call'
280
+ # resp.status # => 200
281
+ #
282
+ # resp = test.post '/foo', JSON.dump(name: 'YK', created_at: Time.now)
283
+ # resp.status # => 200
284
+ #
285
+ # source://faraday//lib/faraday/adapter/test.rb#62
286
+ class Faraday::Adapter::Test < ::Faraday::Adapter
287
+ # @return [Test] a new instance of Test
288
+ #
289
+ # source://faraday//lib/faraday/adapter/test.rb#258
290
+ def initialize(app, stubs = T.unsafe(nil), &block); end
291
+
292
+ # @param env [Faraday::Env]
293
+ #
294
+ # source://faraday//lib/faraday/adapter/test.rb#269
295
+ def call(env); end
296
+
297
+ # @yield [stubs]
298
+ #
299
+ # source://faraday//lib/faraday/adapter/test.rb#264
300
+ def configure; end
301
+
302
+ # Returns the value of attribute stubs.
303
+ #
304
+ # source://faraday//lib/faraday/adapter/test.rb#63
305
+ def stubs; end
306
+
307
+ # Sets the attribute stubs
308
+ #
309
+ # @param value the value to set the attribute stubs to.
310
+ #
311
+ # source://faraday//lib/faraday/adapter/test.rb#63
312
+ def stubs=(_arg0); end
313
+ end
314
+
315
+ # Stub request
316
+ #
317
+ # source://faraday//lib/faraday/adapter/test.rb#188
318
+ class Faraday::Adapter::Test::Stub < ::Struct
319
+ # @return [Boolean]
320
+ #
321
+ # source://faraday//lib/faraday/adapter/test.rb#242
322
+ def body_match?(request_body); end
323
+
324
+ # @return [Boolean]
325
+ #
326
+ # source://faraday//lib/faraday/adapter/test.rb#227
327
+ def headers_match?(request_headers); end
328
+
329
+ # @param env [Faraday::Env]
330
+ # @return [Boolean]
331
+ #
332
+ # source://faraday//lib/faraday/adapter/test.rb#189
333
+ def matches?(env); end
334
+
335
+ # @param env [Faraday::Env]
336
+ # @return [Boolean]
337
+ #
338
+ # source://faraday//lib/faraday/adapter/test.rb#214
339
+ def params_match?(env); end
340
+
341
+ # @return [Boolean]
342
+ #
343
+ # source://faraday//lib/faraday/adapter/test.rb#205
344
+ def path_match?(request_path, meta); end
345
+
346
+ # source://faraday//lib/faraday/adapter/test.rb#253
347
+ def to_s; end
348
+ end
349
+
350
+ # A stack of Stubs
351
+ #
352
+ # source://faraday//lib/faraday/adapter/test.rb#66
353
+ class Faraday::Adapter::Test::Stubs
354
+ # @return [Stubs] a new instance of Stubs
355
+ # @yield [_self]
356
+ # @yieldparam _self [Faraday::Adapter::Test::Stubs] the object that the method was called on
357
+ #
358
+ # source://faraday//lib/faraday/adapter/test.rb#70
359
+ def initialize(strict_mode: T.unsafe(nil)); end
360
+
361
+ # source://faraday//lib/faraday/adapter/test.rb#122
362
+ def delete(path, headers = T.unsafe(nil), &block); end
363
+
364
+ # @return [Boolean]
365
+ #
366
+ # source://faraday//lib/faraday/adapter/test.rb#79
367
+ def empty?; end
368
+
369
+ # source://faraday//lib/faraday/adapter/test.rb#102
370
+ def get(path, headers = T.unsafe(nil), &block); end
371
+
372
+ # source://faraday//lib/faraday/adapter/test.rb#106
373
+ def head(path, headers = T.unsafe(nil), &block); end
374
+
375
+ # @param env [Faraday::Env]
376
+ #
377
+ # source://faraday//lib/faraday/adapter/test.rb#84
378
+ def match(env); end
379
+
380
+ # source://faraday//lib/faraday/adapter/test.rb#126
381
+ def options(path, headers = T.unsafe(nil), &block); end
382
+
383
+ # source://faraday//lib/faraday/adapter/test.rb#118
384
+ def patch(path, body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
385
+
386
+ # source://faraday//lib/faraday/adapter/test.rb#110
387
+ def post(path, body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
388
+
389
+ # source://faraday//lib/faraday/adapter/test.rb#114
390
+ def put(path, body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
391
+
392
+ # Set strict_mode. If the value is true, this adapter tries to find matched requests strictly,
393
+ # which means that all of a path, parameters, and headers must be the same as an actual request.
394
+ #
395
+ # source://faraday//lib/faraday/adapter/test.rb#147
396
+ def strict_mode=(value); end
397
+
398
+ # Raises an error if any of the stubbed calls have not been made.
399
+ #
400
+ # source://faraday//lib/faraday/adapter/test.rb#131
401
+ def verify_stubbed_calls; end
402
+
403
+ protected
404
+
405
+ # @param stack [Hash]
406
+ # @param env [Faraday::Env]
407
+ # @return [Boolean]
408
+ #
409
+ # source://faraday//lib/faraday/adapter/test.rb#177
410
+ def matches?(stack, env); end
411
+
412
+ # source://faraday//lib/faraday/adapter/test.rb#158
413
+ def new_stub(request_method, path, headers = T.unsafe(nil), body = T.unsafe(nil), &block); end
414
+ end
415
+
416
+ # source://faraday//lib/faraday/adapter/test.rb#67
417
+ class Faraday::Adapter::Test::Stubs::NotFound < ::StandardError; end
418
+
419
+ # AdapterRegistry registers adapter class names so they can be looked up by a
420
+ # String or Symbol name.
421
+ #
422
+ # source://faraday//lib/faraday/adapter_registry.rb#8
423
+ class Faraday::AdapterRegistry
424
+ # @return [AdapterRegistry] a new instance of AdapterRegistry
425
+ #
426
+ # source://faraday//lib/faraday/adapter_registry.rb#9
427
+ def initialize; end
428
+
429
+ # source://faraday//lib/faraday/adapter_registry.rb#14
430
+ def get(name); end
431
+
432
+ # source://faraday//lib/faraday/adapter_registry.rb#23
433
+ def set(klass, name = T.unsafe(nil)); end
434
+ end
435
+
436
+ # Raised by Faraday::Response::RaiseError in case of a 400 response.
437
+ #
438
+ # source://faraday//lib/faraday/error.rb#90
439
+ class Faraday::BadRequestError < ::Faraday::ClientError; end
440
+
441
+ # source://faraday//lib/faraday.rb#34
442
+ Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String)
443
+
444
+ # Faraday client error class. Represents 4xx status responses.
445
+ #
446
+ # source://faraday//lib/faraday/error.rb#86
447
+ class Faraday::ClientError < ::Faraday::Error; end
448
+
449
+ # Raised by Faraday::Response::RaiseError in case of a 409 response.
450
+ #
451
+ # source://faraday//lib/faraday/error.rb#110
452
+ class Faraday::ConflictError < ::Faraday::ClientError; end
453
+
454
+ # Connection objects manage the default properties and the middleware
455
+ # stack for fulfilling an HTTP request.
456
+ #
457
+ # @example
458
+ #
459
+ # conn = Faraday::Connection.new 'http://httpbingo.org'
460
+ #
461
+ # # GET http://httpbingo.org/nigiri
462
+ # conn.get 'nigiri'
463
+ # # => #<Faraday::Response>
464
+ #
465
+ # source://faraday//lib/faraday/connection.rb#15
466
+ class Faraday::Connection
467
+ extend ::Forwardable
468
+
469
+ # Initializes a new Faraday::Connection.
470
+ #
471
+ # @option options
472
+ # @option options
473
+ # @option options
474
+ # @option options
475
+ # @option options
476
+ # @option options
477
+ # @option options
478
+ # @option options
479
+ # @option options
480
+ # @param url [URI, String] URI or String base URL to use as a prefix for all
481
+ # requests (optional).
482
+ # @param options [Hash, Faraday::ConnectionOptions]
483
+ # @return [Connection] a new instance of Connection
484
+ # @yield [self] after all setup has been done
485
+ #
486
+ # source://faraday//lib/faraday/connection.rb#63
487
+ def initialize(url = T.unsafe(nil), options = T.unsafe(nil)); end
488
+
489
+ # source://forwardable/1.3.2/forwardable.rb#229
490
+ def adapter(*args, &block); end
491
+
492
+ # source://forwardable/1.3.2/forwardable.rb#229
493
+ def app(*args, &block); end
494
+
495
+ # Build an absolute URL based on url_prefix.
496
+ #
497
+ # of the resulting url (default: nil).
498
+ #
499
+ # @param url [String, URI, nil]
500
+ # @param params [Faraday::Utils::ParamsHash] A Faraday::Utils::ParamsHash to
501
+ # replace the query values
502
+ # @return [URI]
503
+ #
504
+ # source://faraday//lib/faraday/connection.rb#471
505
+ def build_exclusive_url(url = T.unsafe(nil), params = T.unsafe(nil), params_encoder = T.unsafe(nil)); end
506
+
507
+ # Creates and configures the request object.
508
+ #
509
+ # @param method [Symbol]
510
+ # @return [Faraday::Request]
511
+ # @yield [Faraday::Request] if block given
512
+ #
513
+ # source://faraday//lib/faraday/connection.rb#454
514
+ def build_request(method); end
515
+
516
+ # Takes a relative url for a request and combines it with the defaults
517
+ # set on the connection instance.
518
+ #
519
+ # @example
520
+ # conn = Faraday::Connection.new { ... }
521
+ # conn.url_prefix = "https://httpbingo.org/api?token=abc"
522
+ # conn.scheme # => https
523
+ # conn.path_prefix # => "/api"
524
+ #
525
+ # conn.build_url("nigiri?page=2")
526
+ # # => https://httpbingo.org/api/nigiri?token=abc&page=2
527
+ #
528
+ # conn.build_url("nigiri", page: 2)
529
+ # # => https://httpbingo.org/api/nigiri?token=abc&page=2
530
+ # @param url [String, URI, nil]
531
+ # @param extra_params [Hash]
532
+ #
533
+ # source://faraday//lib/faraday/connection.rb#408
534
+ def build_url(url = T.unsafe(nil), extra_params = T.unsafe(nil)); end
535
+
536
+ # @return [Faraday::RackBuilder] Builder for this Connection.
537
+ #
538
+ # source://faraday//lib/faraday/connection.rb#31
539
+ def builder; end
540
+
541
+ # Closes the underlying resources and/or connections. In the case of
542
+ # persistent connections, this closes all currently open connections
543
+ # but does not prevent new connections from being made.
544
+ #
545
+ # source://faraday//lib/faraday/connection.rb#125
546
+ def close; end
547
+
548
+ # Check if the adapter is parallel-capable.
549
+ #
550
+ # @api private
551
+ # @return [Object, nil] a parallel manager or nil if yielded
552
+ # @yield if the adapter isn't parallel-capable, or if no adapter is set yet.
553
+ #
554
+ # source://faraday//lib/faraday/connection.rb#292
555
+ def default_parallel_manager; end
556
+
557
+ # Sets the default parallel manager for this connection.
558
+ #
559
+ # source://faraday//lib/faraday/connection.rb#40
560
+ def default_parallel_manager=(_arg0); end
561
+
562
+ # source://faraday//lib/faraday/connection.rb#199
563
+ def delete(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
564
+
565
+ # Creates a duplicate of this Faraday::Connection.
566
+ #
567
+ # @api private
568
+ # @return [Faraday::Connection]
569
+ #
570
+ # source://faraday//lib/faraday/connection.rb#491
571
+ def dup; end
572
+
573
+ # source://faraday//lib/faraday/connection.rb#539
574
+ def find_default_proxy; end
575
+
576
+ # source://faraday//lib/faraday/connection.rb#199
577
+ def get(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
578
+
579
+ # source://faraday//lib/faraday/connection.rb#199
580
+ def head(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
581
+
582
+ # @return [Hash] unencoded HTTP header key/value pairs.
583
+ #
584
+ # source://faraday//lib/faraday/connection.rb#24
585
+ def headers; end
586
+
587
+ # Sets the Hash of unencoded HTTP header key/value pairs.
588
+ #
589
+ # @param hash [Hash]
590
+ #
591
+ # source://faraday//lib/faraday/connection.rb#114
592
+ def headers=(hash); end
593
+
594
+ # source://forwardable/1.3.2/forwardable.rb#229
595
+ def host(*args, &block); end
596
+
597
+ # source://forwardable/1.3.2/forwardable.rb#229
598
+ def host=(*args, &block); end
599
+
600
+ # Sets up the parallel manager to make a set of requests.
601
+ #
602
+ # @param manager [Object] The parallel manager that this Connection's
603
+ # Adapter uses.
604
+ # @return [void]
605
+ # @yield a block to execute multiple requests.
606
+ #
607
+ # source://faraday//lib/faraday/connection.rb#318
608
+ def in_parallel(manager = T.unsafe(nil)); end
609
+
610
+ # Determine if this Faraday::Connection can make parallel requests.
611
+ #
612
+ # @return [Boolean]
613
+ #
614
+ # source://faraday//lib/faraday/connection.rb#307
615
+ def in_parallel?; end
616
+
617
+ # source://faraday//lib/faraday/connection.rb#96
618
+ def initialize_proxy(url, options); end
619
+
620
+ # @example
621
+ # conn.options '/items/1'
622
+ # @overload options
623
+ # @overload options
624
+ # @return [Faraday::Response]
625
+ # @yield [Faraday::Request] for further request customizations
626
+ #
627
+ # source://faraday//lib/faraday/connection.rb#222
628
+ def options(*args); end
629
+
630
+ # @return [Object] the parallel manager for this Connection.
631
+ #
632
+ # source://faraday//lib/faraday/connection.rb#37
633
+ def parallel_manager; end
634
+
635
+ # @return [Hash] URI query unencoded key/value pairs.
636
+ #
637
+ # source://faraday//lib/faraday/connection.rb#21
638
+ def params; end
639
+
640
+ # Sets the Hash of URI query unencoded key/value pairs.
641
+ #
642
+ # @param hash [Hash]
643
+ #
644
+ # source://faraday//lib/faraday/connection.rb#108
645
+ def params=(hash); end
646
+
647
+ # source://faraday//lib/faraday/connection.rb#280
648
+ def patch(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
649
+
650
+ # source://forwardable/1.3.2/forwardable.rb#229
651
+ def path_prefix(*args, &block); end
652
+
653
+ # Sets the path prefix and ensures that it always has a leading
654
+ # slash.
655
+ #
656
+ # @param value [String]
657
+ # @return [String] the new path prefix
658
+ #
659
+ # source://faraday//lib/faraday/connection.rb#383
660
+ def path_prefix=(value); end
661
+
662
+ # source://forwardable/1.3.2/forwardable.rb#229
663
+ def port(*args, &block); end
664
+
665
+ # source://forwardable/1.3.2/forwardable.rb#229
666
+ def port=(*args, &block); end
667
+
668
+ # source://faraday//lib/faraday/connection.rb#280
669
+ def post(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
670
+
671
+ # @return [Hash] proxy options.
672
+ #
673
+ # source://faraday//lib/faraday/connection.rb#43
674
+ def proxy; end
675
+
676
+ # Sets the Hash proxy options.
677
+ #
678
+ # @param new_value [Object]
679
+ #
680
+ # source://faraday//lib/faraday/connection.rb#334
681
+ def proxy=(new_value); end
682
+
683
+ # source://faraday//lib/faraday/connection.rb#547
684
+ def proxy_for_request(url); end
685
+
686
+ # source://faraday//lib/faraday/connection.rb#514
687
+ def proxy_from_env(url); end
688
+
689
+ # source://faraday//lib/faraday/connection.rb#280
690
+ def put(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
691
+
692
+ # source://forwardable/1.3.2/forwardable.rb#229
693
+ def request(*args, &block); end
694
+
695
+ # source://forwardable/1.3.2/forwardable.rb#229
696
+ def response(*args, &block); end
697
+
698
+ # Builds and runs the Faraday::Request.
699
+ #
700
+ # @param method [Symbol] HTTP method.
701
+ # @param url [String, URI, nil] String or URI to access.
702
+ # @param body [String, nil] The request body that will eventually be converted to
703
+ # a string.
704
+ # @param headers [Hash, nil] unencoded HTTP header key/value pairs.
705
+ # @return [Faraday::Response]
706
+ #
707
+ # source://faraday//lib/faraday/connection.rb#432
708
+ def run_request(method, url, body, headers); end
709
+
710
+ # source://forwardable/1.3.2/forwardable.rb#229
711
+ def scheme(*args, &block); end
712
+
713
+ # source://forwardable/1.3.2/forwardable.rb#229
714
+ def scheme=(*args, &block); end
715
+
716
+ # source://faraday//lib/faraday/connection.rb#372
717
+ def set_basic_auth(user, password); end
718
+
719
+ # @return [Hash] SSL options.
720
+ #
721
+ # source://faraday//lib/faraday/connection.rb#34
722
+ def ssl; end
723
+
724
+ # @return [Boolean]
725
+ #
726
+ # source://faraday//lib/faraday/connection.rb#557
727
+ def support_parallel?(adapter); end
728
+
729
+ # source://faraday//lib/faraday/connection.rb#199
730
+ def trace(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
731
+
732
+ # @return [String] a URI with the prefix used for all requests from this
733
+ # Connection. This includes a default host name, scheme, port, and path.
734
+ #
735
+ # source://faraday//lib/faraday/connection.rb#28
736
+ def url_prefix; end
737
+
738
+ # Parses the given URL with URI and stores the individual
739
+ # components in this connection. These components serve as defaults for
740
+ # requests made by this connection.
741
+ #
742
+ # @example
743
+ #
744
+ # conn = Faraday::Connection.new { ... }
745
+ # conn.url_prefix = "https://httpbingo.org/api"
746
+ # conn.scheme # => https
747
+ # conn.path_prefix # => "/api"
748
+ #
749
+ # conn.get("nigiri?page=2") # accesses https://httpbingo.org/api/nigiri
750
+ # @param url [String, URI]
751
+ # @param encoder [Object]
752
+ #
753
+ # source://faraday//lib/faraday/connection.rb#357
754
+ def url_prefix=(url, encoder = T.unsafe(nil)); end
755
+
756
+ # source://forwardable/1.3.2/forwardable.rb#229
757
+ def use(*args, &block); end
758
+
759
+ # Yields username and password extracted from a URI if they both exist.
760
+ #
761
+ # @api private
762
+ # @param uri [URI]
763
+ # @return [void]
764
+ # @yield [username, password] any username and password
765
+ # @yieldparam username [String] any username from URI
766
+ # @yieldparam password [String] any password from URI
767
+ #
768
+ # source://faraday//lib/faraday/connection.rb#508
769
+ def with_uri_credentials(uri); end
770
+ end
771
+
772
+ # A Set of allowed HTTP verbs.
773
+ #
774
+ # source://faraday//lib/faraday/connection.rb#17
775
+ Faraday::Connection::METHODS = T.let(T.unsafe(nil), Set)
776
+
777
+ # source://faraday//lib/faraday/connection.rb#18
778
+ Faraday::Connection::USER_AGENT = T.let(T.unsafe(nil), String)
779
+
780
+ # A unified error for failed connections.
781
+ #
782
+ # source://faraday//lib/faraday/error.rb#137
783
+ class Faraday::ConnectionFailed < ::Faraday::Error; end
784
+
785
+ # ConnectionOptions contains the configurable properties for a Faraday
786
+ # connection object.
787
+ #
788
+ # source://faraday//lib/faraday/options/connection_options.rb#8
789
+ class Faraday::ConnectionOptions < ::Faraday::Options
790
+ # source://faraday//lib/faraday/options.rb#177
791
+ def builder_class; end
792
+
793
+ # source://faraday//lib/faraday/options/connection_options.rb#18
794
+ def new_builder(block); end
795
+
796
+ # source://faraday//lib/faraday/options.rb#177
797
+ def request; end
798
+
799
+ # source://faraday//lib/faraday/options.rb#177
800
+ def ssl; end
801
+ end
802
+
803
+ # Sub-module for decoding query-string into parameters.
804
+ #
805
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#81
806
+ module Faraday::DecodeMethods
807
+ # @param query [nil, String]
808
+ # @raise [TypeError] if the nesting is incorrect
809
+ # @return [Array<Array, String>] the decoded params
810
+ #
811
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#87
812
+ def decode(query); end
813
+
814
+ protected
815
+
816
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#144
817
+ def add_to_context(is_array, context, value, subkey); end
818
+
819
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#107
820
+ def decode_pair(key, value, context); end
821
+
822
+ # Internal: convert a nested hash with purely numeric keys into an array.
823
+ # FIXME: this is not compatible with Rack::Utils.parse_nested_query
824
+ #
825
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#151
826
+ def dehash(hash, depth); end
827
+
828
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#139
829
+ def match_context(context, subkey); end
830
+
831
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#129
832
+ def new_context(subkey, is_array, context); end
833
+
834
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#119
835
+ def prepare_context(context, subkey, is_array, last_subkey); end
836
+ end
837
+
838
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#105
839
+ Faraday::DecodeMethods::SUBKEYS_REGEX = T.let(T.unsafe(nil), Regexp)
840
+
841
+ # Sub-module for encoding parameters into query-string.
842
+ #
843
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#5
844
+ module Faraday::EncodeMethods
845
+ # @param params [nil, Array, #to_hash] parameters to be encoded
846
+ # @raise [TypeError] if params can not be converted to a Hash
847
+ # @return [String] the encoded params
848
+ #
849
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#11
850
+ def encode(params); end
851
+
852
+ protected
853
+
854
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#64
855
+ def encode_array(parent, value); end
856
+
857
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#53
858
+ def encode_hash(parent, value); end
859
+
860
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#40
861
+ def encode_pair(parent, value); end
862
+ end
863
+
864
+ # source://faraday//lib/faraday/options/env.rb#52
865
+ class Faraday::Env < ::Faraday::Options
866
+ extend ::Forwardable
867
+
868
+ # @param key [Object]
869
+ #
870
+ # source://faraday//lib/faraday/options/env.rb#84
871
+ def [](key); end
872
+
873
+ # @param key [Object]
874
+ # @param value [Object]
875
+ #
876
+ # source://faraday//lib/faraday/options/env.rb#96
877
+ def []=(key, value); end
878
+
879
+ # string.
880
+ #
881
+ # @return [String] The request body that will eventually be converted to a
882
+ #
883
+ # source://faraday//lib/faraday/options/env.rb#113
884
+ def body; end
885
+
886
+ # string.
887
+ #
888
+ # @return [String] The request body that will eventually be converted to a
889
+ #
890
+ # source://faraday//lib/faraday/options/env.rb#117
891
+ def body=(value); end
892
+
893
+ # Sets content length to zero and the body to the empty string.
894
+ #
895
+ # source://faraday//lib/faraday/options/env.rb#133
896
+ def clear_body; end
897
+
898
+ # source://faraday//lib/faraday/options/env.rb#109
899
+ def current_body; end
900
+
901
+ # @private
902
+ #
903
+ # source://faraday//lib/faraday/options/env.rb#179
904
+ def custom_members; end
905
+
906
+ # @return [Boolean]
907
+ #
908
+ # source://faraday//lib/faraday/options/env.rb#185
909
+ def in_member_set?(key); end
910
+
911
+ # source://faraday//lib/faraday/options/env.rb#149
912
+ def inspect; end
913
+
914
+ # set of {MethodsWithBodies}.
915
+ #
916
+ # @return [Boolean] true if there's no body yet, and the method is in the
917
+ #
918
+ # source://faraday//lib/faraday/options/env.rb#128
919
+ def needs_body?; end
920
+
921
+ # @return [Boolean] true if there is a parallel_manager
922
+ #
923
+ # source://faraday//lib/faraday/options/env.rb#145
924
+ def parallel?; end
925
+
926
+ # source://forwardable/1.3.2/forwardable.rb#229
927
+ def params_encoder(*args, &block); end
928
+
929
+ # {StatusesWithoutBody}.
930
+ #
931
+ # @return [Boolean] true if the status isn't in the set of
932
+ #
933
+ # source://faraday//lib/faraday/options/env.rb#140
934
+ def parse_body?; end
935
+
936
+ # source://faraday//lib/faraday/options/env.rb#164
937
+ def stream_response(&block); end
938
+
939
+ # @return [Boolean]
940
+ #
941
+ # source://faraday//lib/faraday/options/env.rb#160
942
+ def stream_response?; end
943
+
944
+ # @return [Boolean] true if status is in the set of {SuccessfulStatuses}.
945
+ #
946
+ # source://faraday//lib/faraday/options/env.rb#122
947
+ def success?; end
948
+
949
+ class << self
950
+ # Build a new Env from given value. Respects and updates `custom_members`.
951
+ #
952
+ # @param value [Object] a value fitting Option.from(v).
953
+ # @return [Env] from given value
954
+ #
955
+ # source://faraday//lib/faraday/options/env.rb#75
956
+ def from(value); end
957
+
958
+ # @private
959
+ #
960
+ # source://faraday//lib/faraday/options/env.rb#195
961
+ def member_set; end
962
+ end
963
+ end
964
+
965
+ # source://faraday//lib/faraday/options/env.rb#55
966
+ Faraday::Env::ContentLength = T.let(T.unsafe(nil), String)
967
+
968
+ # A Set of HTTP verbs that typically send a body. If no body is set for
969
+ # these requests, the Content-Length header is set to 0.
970
+ #
971
+ # source://faraday//lib/faraday/options/env.rb#62
972
+ Faraday::Env::MethodsWithBodies = T.let(T.unsafe(nil), Set)
973
+
974
+ # source://faraday//lib/faraday/options/env.rb#56
975
+ Faraday::Env::StatusesWithoutBody = T.let(T.unsafe(nil), Set)
976
+
977
+ # source://faraday//lib/faraday/options/env.rb#57
978
+ Faraday::Env::SuccessfulStatuses = T.let(T.unsafe(nil), Range)
979
+
980
+ # Faraday error base class.
981
+ #
982
+ # source://faraday//lib/faraday/error.rb#6
983
+ class Faraday::Error < ::StandardError
984
+ # @return [Error] a new instance of Error
985
+ #
986
+ # source://faraday//lib/faraday/error.rb#9
987
+ def initialize(exc = T.unsafe(nil), response = T.unsafe(nil)); end
988
+
989
+ # source://faraday//lib/faraday/error.rb#15
990
+ def backtrace; end
991
+
992
+ # source://faraday//lib/faraday/error.rb#23
993
+ def inspect; end
994
+
995
+ # Returns the value of attribute response.
996
+ #
997
+ # source://faraday//lib/faraday/error.rb#7
998
+ def response; end
999
+
1000
+ # source://faraday//lib/faraday/error.rb#39
1001
+ def response_body; end
1002
+
1003
+ # source://faraday//lib/faraday/error.rb#35
1004
+ def response_headers; end
1005
+
1006
+ # source://faraday//lib/faraday/error.rb#31
1007
+ def response_status; end
1008
+
1009
+ # Returns the value of attribute wrapped_exception.
1010
+ #
1011
+ # source://faraday//lib/faraday/error.rb#7
1012
+ def wrapped_exception; end
1013
+
1014
+ protected
1015
+
1016
+ # Pulls out potential parent exception and response hash.
1017
+ #
1018
+ # source://faraday//lib/faraday/error.rb#75
1019
+ def exc_msg_and_response(exc, response = T.unsafe(nil)); end
1020
+
1021
+ # Pulls out potential parent exception and response hash, storing them in
1022
+ # instance variables.
1023
+ # exc - Either an Exception, a string message, or a response hash.
1024
+ # response - Hash
1025
+ # :status - Optional integer HTTP response status
1026
+ # :headers - String key/value hash of HTTP response header
1027
+ # values.
1028
+ # :body - Optional string HTTP response body.
1029
+ # :request - Hash
1030
+ # :method - Symbol with the request HTTP method.
1031
+ # :url - URI object with the url requested.
1032
+ # :url_path - String with the url path requested.
1033
+ # :params - String key/value hash of query params
1034
+ # present in the request.
1035
+ # :headers - String key/value hash of HTTP request
1036
+ # header values.
1037
+ # :body - String HTTP request body.
1038
+ #
1039
+ # If a subclass has to call this, then it should pass a string message
1040
+ # to `super`. See NilStatusError.
1041
+ #
1042
+ # source://faraday//lib/faraday/error.rb#65
1043
+ def exc_msg_and_response!(exc, response = T.unsafe(nil)); end
1044
+ end
1045
+
1046
+ # FlatParamsEncoder manages URI params as a flat hash. Any Array values repeat
1047
+ # the parameter multiple times.
1048
+ #
1049
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#6
1050
+ module Faraday::FlatParamsEncoder
1051
+ class << self
1052
+ # Decode converts the given URI querystring into a hash.
1053
+ #
1054
+ # @example
1055
+ #
1056
+ # decode('a=one&a=two&a=three&b=true&c=C')
1057
+ # # => {"a"=>["one", "two", "three"], "b"=>"true", "c"=>"C"}
1058
+ # @param query [String] query arguments to parse.
1059
+ # @return [Hash] parsed keys and value strings from the querystring.
1060
+ #
1061
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#74
1062
+ def decode(query); end
1063
+
1064
+ # Encode converts the given param into a URI querystring. Keys and values
1065
+ # will converted to strings and appropriately escaped for the URI.
1066
+ #
1067
+ # @example
1068
+ #
1069
+ # encode({a: %w[one two three], b: true, c: "C"})
1070
+ # # => 'a=one&a=two&a=three&b=true&c=C'
1071
+ # @param params [Hash] query arguments to convert.
1072
+ # @return [String] the URI querystring (without the leading '?')
1073
+ #
1074
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#23
1075
+ def encode(params); end
1076
+
1077
+ # source://forwardable/1.3.2/forwardable.rb#229
1078
+ def escape(*args, &block); end
1079
+
1080
+ # Returns the value of attribute sort_params.
1081
+ #
1082
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#99
1083
+ def sort_params; end
1084
+
1085
+ # Sets the attribute sort_params
1086
+ #
1087
+ # @param value the value to set the attribute sort_params to.
1088
+ #
1089
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#99
1090
+ def sort_params=(_arg0); end
1091
+
1092
+ # source://forwardable/1.3.2/forwardable.rb#229
1093
+ def unescape(*args, &block); end
1094
+ end
1095
+ end
1096
+
1097
+ # Raised by Faraday::Response::RaiseError in case of a 403 response.
1098
+ #
1099
+ # source://faraday//lib/faraday/error.rb#98
1100
+ class Faraday::ForbiddenError < ::Faraday::ClientError; end
1101
+
1102
+ # source://faraday//lib/faraday/logging/formatter.rb#6
1103
+ module Faraday::Logging; end
1104
+
1105
+ # Serves as an integration point to customize logging
1106
+ #
1107
+ # source://faraday//lib/faraday/logging/formatter.rb#8
1108
+ class Faraday::Logging::Formatter
1109
+ extend ::Forwardable
1110
+
1111
+ # @return [Formatter] a new instance of Formatter
1112
+ #
1113
+ # source://faraday//lib/faraday/logging/formatter.rb#14
1114
+ def initialize(logger:, options:); end
1115
+
1116
+ # source://forwardable/1.3.2/forwardable.rb#229
1117
+ def debug(*args, &block); end
1118
+
1119
+ # source://forwardable/1.3.2/forwardable.rb#229
1120
+ def error(*args, &block); end
1121
+
1122
+ # source://faraday//lib/faraday/logging/formatter.rb#40
1123
+ def exception(exc); end
1124
+
1125
+ # source://forwardable/1.3.2/forwardable.rb#229
1126
+ def fatal(*args, &block); end
1127
+
1128
+ # source://faraday//lib/faraday/logging/formatter.rb#52
1129
+ def filter(filter_word, filter_replacement); end
1130
+
1131
+ # source://forwardable/1.3.2/forwardable.rb#229
1132
+ def info(*args, &block); end
1133
+
1134
+ # source://faraday//lib/faraday/logging/formatter.rb#22
1135
+ def request(env); end
1136
+
1137
+ # source://faraday//lib/faraday/logging/formatter.rb#32
1138
+ def response(env); end
1139
+
1140
+ # source://forwardable/1.3.2/forwardable.rb#229
1141
+ def warn(*args, &block); end
1142
+
1143
+ private
1144
+
1145
+ # source://faraday//lib/faraday/logging/formatter.rb#96
1146
+ def apply_filters(output); end
1147
+
1148
+ # source://faraday//lib/faraday/logging/formatter.rb#62
1149
+ def dump_body(body); end
1150
+
1151
+ # source://faraday//lib/faraday/logging/formatter.rb#58
1152
+ def dump_headers(headers); end
1153
+
1154
+ # source://faraday//lib/faraday/logging/formatter.rb#116
1155
+ def log_body(type, body); end
1156
+
1157
+ # @return [Boolean]
1158
+ #
1159
+ # source://faraday//lib/faraday/logging/formatter.rb#83
1160
+ def log_body?(type); end
1161
+
1162
+ # @return [Boolean]
1163
+ #
1164
+ # source://faraday//lib/faraday/logging/formatter.rb#92
1165
+ def log_errors?; end
1166
+
1167
+ # source://faraday//lib/faraday/logging/formatter.rb#111
1168
+ def log_headers(type, headers); end
1169
+
1170
+ # @return [Boolean]
1171
+ #
1172
+ # source://faraday//lib/faraday/logging/formatter.rb#74
1173
+ def log_headers?(type); end
1174
+
1175
+ # source://faraday//lib/faraday/logging/formatter.rb#103
1176
+ def log_level; end
1177
+
1178
+ # source://faraday//lib/faraday/logging/formatter.rb#70
1179
+ def pretty_inspect(body); end
1180
+ end
1181
+
1182
+ # source://faraday//lib/faraday/logging/formatter.rb#11
1183
+ Faraday::Logging::Formatter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
1184
+
1185
+ # source://faraday//lib/faraday/methods.rb#5
1186
+ Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array)
1187
+
1188
+ # source://faraday//lib/faraday/methods.rb#4
1189
+ Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array)
1190
+
1191
+ # Middleware is the basic base class of any Faraday middleware.
1192
+ #
1193
+ # source://faraday//lib/faraday/middleware.rb#5
1194
+ class Faraday::Middleware
1195
+ extend ::Faraday::MiddlewareRegistry
1196
+
1197
+ # @return [Middleware] a new instance of Middleware
1198
+ #
1199
+ # source://faraday//lib/faraday/middleware.rb#10
1200
+ def initialize(app = T.unsafe(nil), options = T.unsafe(nil)); end
1201
+
1202
+ # Returns the value of attribute app.
1203
+ #
1204
+ # source://faraday//lib/faraday/middleware.rb#8
1205
+ def app; end
1206
+
1207
+ # source://faraday//lib/faraday/middleware.rb#15
1208
+ def call(env); end
1209
+
1210
+ # source://faraday//lib/faraday/middleware.rb#25
1211
+ def close; end
1212
+
1213
+ # Returns the value of attribute options.
1214
+ #
1215
+ # source://faraday//lib/faraday/middleware.rb#8
1216
+ def options; end
1217
+ end
1218
+
1219
+ # Adds the ability for other modules to register and lookup
1220
+ # middleware classes.
1221
+ #
1222
+ # source://faraday//lib/faraday/middleware_registry.rb#8
1223
+ module Faraday::MiddlewareRegistry
1224
+ # Lookup middleware class with a registered Symbol shortcut.
1225
+ #
1226
+ # @example
1227
+ #
1228
+ # module Faraday
1229
+ # class Whatever < Middleware
1230
+ # register_middleware(foo: Whatever)
1231
+ # end
1232
+ # end
1233
+ #
1234
+ # Faraday::Middleware.lookup_middleware(:foo)
1235
+ # # => Faraday::Whatever
1236
+ # @param key [Symbol] key for the registered middleware.
1237
+ # @raise [Faraday::Error] if given key is not registered
1238
+ # @return [Class] a middleware Class.
1239
+ #
1240
+ # source://faraday//lib/faraday/middleware_registry.rb#55
1241
+ def lookup_middleware(key); end
1242
+
1243
+ # Register middleware class(es) on the current module.
1244
+ #
1245
+ # @example Lookup by a constant
1246
+ #
1247
+ # module Faraday
1248
+ # class Whatever < Middleware
1249
+ # # Middleware looked up by :foo returns Faraday::Whatever::Foo.
1250
+ # register_middleware(foo: Whatever)
1251
+ # end
1252
+ # end
1253
+ # @param mappings [Hash] Middleware mappings from a lookup symbol to a middleware class.
1254
+ # @return [void]
1255
+ #
1256
+ # source://faraday//lib/faraday/middleware_registry.rb#26
1257
+ def register_middleware(**mappings); end
1258
+
1259
+ # source://faraday//lib/faraday/middleware_registry.rb#9
1260
+ def registered_middleware; end
1261
+
1262
+ # Unregister a previously registered middleware class.
1263
+ #
1264
+ # @param key [Symbol] key for the registered middleware.
1265
+ #
1266
+ # source://faraday//lib/faraday/middleware_registry.rb#35
1267
+ def unregister_middleware(key); end
1268
+
1269
+ private
1270
+
1271
+ # source://faraday//lib/faraday/middleware_registry.rb#67
1272
+ def load_middleware(key); end
1273
+
1274
+ # source://faraday//lib/faraday/middleware_registry.rb#62
1275
+ def middleware_mutex(&block); end
1276
+ end
1277
+
1278
+ # This is the default encoder for Faraday requests.
1279
+ # Using this encoder, parameters will be encoded respecting their structure,
1280
+ # so you can send objects such as Arrays or Hashes as parameters
1281
+ # for your requests.
1282
+ #
1283
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#168
1284
+ module Faraday::NestedParamsEncoder
1285
+ extend ::Faraday::EncodeMethods
1286
+ extend ::Faraday::DecodeMethods
1287
+
1288
+ class << self
1289
+ # Returns the value of attribute array_indices.
1290
+ #
1291
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170
1292
+ def array_indices; end
1293
+
1294
+ # Sets the attribute array_indices
1295
+ #
1296
+ # @param value the value to set the attribute array_indices to.
1297
+ #
1298
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170
1299
+ def array_indices=(_arg0); end
1300
+
1301
+ # source://forwardable/1.3.2/forwardable.rb#229
1302
+ def escape(*args, &block); end
1303
+
1304
+ # Returns the value of attribute sort_params.
1305
+ #
1306
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170
1307
+ def sort_params; end
1308
+
1309
+ # Sets the attribute sort_params
1310
+ #
1311
+ # @param value the value to set the attribute sort_params to.
1312
+ #
1313
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170
1314
+ def sort_params=(_arg0); end
1315
+
1316
+ # source://forwardable/1.3.2/forwardable.rb#229
1317
+ def unescape(*args, &block); end
1318
+ end
1319
+ end
1320
+
1321
+ # Raised by Faraday::Response::RaiseError in case of a nil status in response.
1322
+ #
1323
+ # source://faraday//lib/faraday/error.rb#129
1324
+ class Faraday::NilStatusError < ::Faraday::ServerError
1325
+ # @return [NilStatusError] a new instance of NilStatusError
1326
+ #
1327
+ # source://faraday//lib/faraday/error.rb#130
1328
+ def initialize(exc, response = T.unsafe(nil)); end
1329
+ end
1330
+
1331
+ # Subclasses Struct with some special helpers for converting from a Hash to
1332
+ # a Struct.
1333
+ #
1334
+ # source://faraday//lib/faraday/options.rb#7
1335
+ class Faraday::Options < ::Struct
1336
+ # source://faraday//lib/faraday/options.rb#185
1337
+ def [](key); end
1338
+
1339
+ # Public
1340
+ #
1341
+ # source://faraday//lib/faraday/options.rb#46
1342
+ def clear; end
1343
+
1344
+ # Public
1345
+ #
1346
+ # source://faraday//lib/faraday/options.rb#71
1347
+ def deep_dup; end
1348
+
1349
+ # Public
1350
+ #
1351
+ # source://faraday//lib/faraday/options.rb#39
1352
+ def delete(key); end
1353
+
1354
+ # Public
1355
+ #
1356
+ # source://faraday//lib/faraday/options.rb#13
1357
+ def each; end
1358
+
1359
+ # Public
1360
+ #
1361
+ # source://faraday//lib/faraday/options.rb#106
1362
+ def each_key(&block); end
1363
+
1364
+ # Public
1365
+ #
1366
+ # source://faraday//lib/faraday/options.rb#120
1367
+ def each_value(&block); end
1368
+
1369
+ # Public
1370
+ #
1371
+ # @return [Boolean]
1372
+ #
1373
+ # source://faraday//lib/faraday/options.rb#101
1374
+ def empty?; end
1375
+
1376
+ # Public
1377
+ #
1378
+ # source://faraday//lib/faraday/options.rb#76
1379
+ def fetch(key, *args); end
1380
+
1381
+ # Public
1382
+ #
1383
+ # @return [Boolean]
1384
+ #
1385
+ # source://faraday//lib/faraday/options.rb#113
1386
+ def has_key?(key); end
1387
+
1388
+ # Public
1389
+ #
1390
+ # @return [Boolean]
1391
+ #
1392
+ # source://faraday//lib/faraday/options.rb#127
1393
+ def has_value?(value); end
1394
+
1395
+ # Internal
1396
+ #
1397
+ # source://faraday//lib/faraday/options.rb#144
1398
+ def inspect; end
1399
+
1400
+ # Public
1401
+ #
1402
+ # @return [Boolean]
1403
+ #
1404
+ # source://faraday//lib/faraday/options.rb#113
1405
+ def key?(key); end
1406
+
1407
+ # Public
1408
+ #
1409
+ # source://faraday//lib/faraday/options.rb#96
1410
+ def keys; end
1411
+
1412
+ # Public
1413
+ #
1414
+ # source://faraday//lib/faraday/options.rb#66
1415
+ def merge(other); end
1416
+
1417
+ # Public
1418
+ #
1419
+ # source://faraday//lib/faraday/options.rb#51
1420
+ def merge!(other); end
1421
+
1422
+ # source://faraday//lib/faraday/options.rb#194
1423
+ def symbolized_key_set; end
1424
+
1425
+ # Public
1426
+ #
1427
+ # source://faraday//lib/faraday/options.rb#134
1428
+ def to_hash; end
1429
+
1430
+ # Public
1431
+ #
1432
+ # source://faraday//lib/faraday/options.rb#22
1433
+ def update(obj); end
1434
+
1435
+ # Public
1436
+ #
1437
+ # @return [Boolean]
1438
+ #
1439
+ # source://faraday//lib/faraday/options.rb#127
1440
+ def value?(value); end
1441
+
1442
+ # Public
1443
+ #
1444
+ # source://faraday//lib/faraday/options.rb#91
1445
+ def values_at(*keys); end
1446
+
1447
+ class << self
1448
+ # Internal
1449
+ #
1450
+ # source://faraday//lib/faraday/options.rb#166
1451
+ def attribute_options; end
1452
+
1453
+ # source://faraday//lib/faraday/options.rb#204
1454
+ def fetch_error_class; end
1455
+
1456
+ # Public
1457
+ #
1458
+ # source://faraday//lib/faraday/options.rb#8
1459
+ def from(value); end
1460
+
1461
+ # @private
1462
+ #
1463
+ # source://faraday//lib/faraday/options.rb#198
1464
+ def inherited(subclass); end
1465
+
1466
+ # source://faraday//lib/faraday/options.rb#170
1467
+ def memoized(key, &block); end
1468
+
1469
+ # source://faraday//lib/faraday/options.rb#181
1470
+ def memoized_attributes; end
1471
+
1472
+ # Internal
1473
+ #
1474
+ # source://faraday//lib/faraday/options.rb#156
1475
+ def options(mapping); end
1476
+
1477
+ # Internal
1478
+ #
1479
+ # source://faraday//lib/faraday/options.rb#161
1480
+ def options_for(key); end
1481
+ end
1482
+ end
1483
+
1484
+ # Raised by middlewares that parse the response, like the JSON response middleware.
1485
+ #
1486
+ # source://faraday//lib/faraday/error.rb#145
1487
+ class Faraday::ParsingError < ::Faraday::Error; end
1488
+
1489
+ # Raised by Faraday::Response::RaiseError in case of a 407 response.
1490
+ #
1491
+ # source://faraday//lib/faraday/error.rb#106
1492
+ class Faraday::ProxyAuthError < ::Faraday::ClientError; end
1493
+
1494
+ # ProxyOptions contains the configurable properties for the proxy
1495
+ # configuration used when making an HTTP request.
1496
+ #
1497
+ # source://faraday//lib/faraday/options/proxy_options.rb#6
1498
+ class Faraday::ProxyOptions < ::Faraday::Options
1499
+ extend ::Forwardable
1500
+
1501
+ # source://forwardable/1.3.2/forwardable.rb#229
1502
+ def host(*args, &block); end
1503
+
1504
+ # source://forwardable/1.3.2/forwardable.rb#229
1505
+ def host=(*args, &block); end
1506
+
1507
+ # source://faraday//lib/faraday/options.rb#177
1508
+ def password; end
1509
+
1510
+ # source://forwardable/1.3.2/forwardable.rb#229
1511
+ def path(*args, &block); end
1512
+
1513
+ # source://forwardable/1.3.2/forwardable.rb#229
1514
+ def path=(*args, &block); end
1515
+
1516
+ # source://forwardable/1.3.2/forwardable.rb#229
1517
+ def port(*args, &block); end
1518
+
1519
+ # source://forwardable/1.3.2/forwardable.rb#229
1520
+ def port=(*args, &block); end
1521
+
1522
+ # source://forwardable/1.3.2/forwardable.rb#229
1523
+ def scheme(*args, &block); end
1524
+
1525
+ # source://forwardable/1.3.2/forwardable.rb#229
1526
+ def scheme=(*args, &block); end
1527
+
1528
+ # source://faraday//lib/faraday/options.rb#177
1529
+ def user; end
1530
+
1531
+ class << self
1532
+ # source://faraday//lib/faraday/options/proxy_options.rb#11
1533
+ def from(value); end
1534
+ end
1535
+ end
1536
+
1537
+ # A Builder that processes requests into responses by passing through an inner
1538
+ # middleware stack (heavily inspired by Rack).
1539
+ #
1540
+ # @example
1541
+ # Faraday::Connection.new(url: 'http://httpbingo.org') do |builder|
1542
+ # builder.request :url_encoded # Faraday::Request::UrlEncoded
1543
+ # builder.adapter :net_http # Faraday::Adapter::NetHttp
1544
+ # end
1545
+ #
1546
+ # source://faraday//lib/faraday/rack_builder.rb#15
1547
+ class Faraday::RackBuilder
1548
+ # @return [RackBuilder] a new instance of RackBuilder
1549
+ #
1550
+ # source://faraday//lib/faraday/rack_builder.rb#61
1551
+ def initialize(&block); end
1552
+
1553
+ # source://faraday//lib/faraday/rack_builder.rb#179
1554
+ def ==(other); end
1555
+
1556
+ # source://faraday//lib/faraday/rack_builder.rb#79
1557
+ def [](idx); end
1558
+
1559
+ # source://faraday//lib/faraday/rack_builder.rb#110
1560
+ def adapter(klass = T.unsafe(nil), *args, &block); end
1561
+
1562
+ # The "rack app" wrapped in middleware. All requests are sent here.
1563
+ #
1564
+ # The builder is responsible for creating the app object. After this,
1565
+ # the builder gets locked to ensure no further modifications are made
1566
+ # to the middleware stack.
1567
+ #
1568
+ # Returns an object that responds to `call` and returns a Response.
1569
+ #
1570
+ # source://faraday//lib/faraday/rack_builder.rb#163
1571
+ def app; end
1572
+
1573
+ # source://faraday//lib/faraday/rack_builder.rb#73
1574
+ def build; end
1575
+
1576
+ # ENV Keys
1577
+ # :http_method - a symbolized request HTTP method (:get, :post)
1578
+ # :body - the request body that will eventually be converted to a string.
1579
+ # :url - URI instance for the current request.
1580
+ # :status - HTTP response status code
1581
+ # :request_headers - hash of HTTP Headers to be sent to the server
1582
+ # :response_headers - Hash of HTTP headers from the server
1583
+ # :parallel_manager - sent if the connection is in parallel mode
1584
+ # :request - Hash of options for configuring the request.
1585
+ # :timeout - open/read timeout Integer in seconds
1586
+ # :open_timeout - read timeout Integer in seconds
1587
+ # :proxy - Hash of proxy options
1588
+ # :uri - Proxy Server URI
1589
+ # :user - Proxy server username
1590
+ # :password - Proxy server password
1591
+ # :ssl - Hash of options for configuring SSL requests.
1592
+ #
1593
+ # source://faraday//lib/faraday/rack_builder.rb#201
1594
+ def build_env(connection, request); end
1595
+
1596
+ # Processes a Request into a Response by passing it through this Builder's
1597
+ # middleware stack.
1598
+ #
1599
+ # @param connection [Faraday::Connection]
1600
+ # @param request [Faraday::Request]
1601
+ # @return [Faraday::Response]
1602
+ #
1603
+ # source://faraday//lib/faraday/rack_builder.rb#152
1604
+ def build_response(connection, request); end
1605
+
1606
+ # source://faraday//lib/faraday/rack_builder.rb#140
1607
+ def delete(handler); end
1608
+
1609
+ # Returns the value of attribute handlers.
1610
+ #
1611
+ # source://faraday//lib/faraday/rack_builder.rb#19
1612
+ def handlers; end
1613
+
1614
+ # Sets the attribute handlers
1615
+ #
1616
+ # @param value the value to set the attribute handlers to.
1617
+ #
1618
+ # source://faraday//lib/faraday/rack_builder.rb#19
1619
+ def handlers=(_arg0); end
1620
+
1621
+ # methods to push onto the various positions in the stack:
1622
+ #
1623
+ # source://faraday//lib/faraday/rack_builder.rb#119
1624
+ def insert(index, *args, &block); end
1625
+
1626
+ # source://faraday//lib/faraday/rack_builder.rb#128
1627
+ def insert_after(index, *args, &block); end
1628
+
1629
+ # methods to push onto the various positions in the stack:
1630
+ #
1631
+ # source://faraday//lib/faraday/rack_builder.rb#119
1632
+ def insert_before(index, *args, &block); end
1633
+
1634
+ # Locks the middleware stack to ensure no further modifications are made.
1635
+ #
1636
+ # source://faraday//lib/faraday/rack_builder.rb#84
1637
+ def lock!; end
1638
+
1639
+ # @return [Boolean]
1640
+ #
1641
+ # source://faraday//lib/faraday/rack_builder.rb#88
1642
+ def locked?; end
1643
+
1644
+ # source://faraday//lib/faraday/rack_builder.rb#102
1645
+ def request(key, *args, &block); end
1646
+
1647
+ # source://faraday//lib/faraday/rack_builder.rb#106
1648
+ def response(key, *args, &block); end
1649
+
1650
+ # source://faraday//lib/faraday/rack_builder.rb#133
1651
+ def swap(index, *args, &block); end
1652
+
1653
+ # source://faraday//lib/faraday/rack_builder.rb#171
1654
+ def to_app; end
1655
+
1656
+ # source://faraday//lib/faraday/rack_builder.rb#92
1657
+ def use(klass, *args, &block); end
1658
+
1659
+ private
1660
+
1661
+ # @return [Boolean]
1662
+ #
1663
+ # source://faraday//lib/faraday/rack_builder.rb#233
1664
+ def adapter_set?; end
1665
+
1666
+ # source://faraday//lib/faraday/rack_builder.rb#245
1667
+ def assert_index(index); end
1668
+
1669
+ # @raise [MISSING_ADAPTER_ERROR]
1670
+ #
1671
+ # source://faraday//lib/faraday/rack_builder.rb#229
1672
+ def ensure_adapter!; end
1673
+
1674
+ # source://faraday//lib/faraday/rack_builder.rb#67
1675
+ def initialize_dup(original); end
1676
+
1677
+ # @return [Boolean]
1678
+ #
1679
+ # source://faraday//lib/faraday/rack_builder.rb#237
1680
+ def is_adapter?(klass); end
1681
+
1682
+ # source://faraday//lib/faraday/rack_builder.rb#223
1683
+ def raise_if_adapter(klass); end
1684
+
1685
+ # @raise [StackLocked]
1686
+ #
1687
+ # source://faraday//lib/faraday/rack_builder.rb#219
1688
+ def raise_if_locked; end
1689
+
1690
+ # source://faraday//lib/faraday/rack_builder.rb#241
1691
+ def use_symbol(mod, key, *args, &block); end
1692
+ end
1693
+
1694
+ # borrowed from ActiveSupport::Dependencies::Reference &
1695
+ # ActionDispatch::MiddlewareStack::Middleware
1696
+ #
1697
+ # source://faraday//lib/faraday/rack_builder.rb#26
1698
+ class Faraday::RackBuilder::Handler
1699
+ # source://faraday//lib/faraday/rack_builder.rb#31
1700
+ def initialize(klass, *args, &block); end
1701
+
1702
+ # source://faraday//lib/faraday/rack_builder.rb#46
1703
+ def ==(other); end
1704
+
1705
+ # source://faraday//lib/faraday/rack_builder.rb#56
1706
+ def build(app = T.unsafe(nil)); end
1707
+
1708
+ # source://faraday//lib/faraday/rack_builder.rb#42
1709
+ def inspect; end
1710
+
1711
+ # source://faraday//lib/faraday/rack_builder.rb#38
1712
+ def klass; end
1713
+
1714
+ # Returns the value of attribute name.
1715
+ #
1716
+ # source://faraday//lib/faraday/rack_builder.rb#29
1717
+ def name; end
1718
+ end
1719
+
1720
+ # source://faraday//lib/faraday/rack_builder.rb#27
1721
+ Faraday::RackBuilder::Handler::REGISTRY = T.let(T.unsafe(nil), Faraday::AdapterRegistry)
1722
+
1723
+ # source://faraday//lib/faraday/rack_builder.rb#214
1724
+ Faraday::RackBuilder::LOCK_ERR = T.let(T.unsafe(nil), String)
1725
+
1726
+ # source://faraday//lib/faraday/rack_builder.rb#215
1727
+ Faraday::RackBuilder::MISSING_ADAPTER_ERROR = T.let(T.unsafe(nil), String)
1728
+
1729
+ # Used to detect missing arguments
1730
+ #
1731
+ # source://faraday//lib/faraday/rack_builder.rb#17
1732
+ Faraday::RackBuilder::NO_ARGUMENT = T.let(T.unsafe(nil), Object)
1733
+
1734
+ # Error raised when trying to modify the stack after calling `lock!`
1735
+ #
1736
+ # source://faraday//lib/faraday/rack_builder.rb#22
1737
+ class Faraday::RackBuilder::StackLocked < ::RuntimeError; end
1738
+
1739
+ # Used to setup URLs, params, headers, and the request body in a sane manner.
1740
+ #
1741
+ #
1742
+ # @example
1743
+ # @connection.post do |req|
1744
+ # req.url 'http://localhost', 'a' => '1' # 'http://localhost?a=1'
1745
+ # req.headers['b'] = '2' # Header
1746
+ # req.params['c'] = '3' # GET Param
1747
+ # req['b'] = '2' # also Header
1748
+ # req.body = 'abc'
1749
+ # end
1750
+ #
1751
+ # source://faraday//lib/faraday/request.rb#30
1752
+ class Faraday::Request < ::Struct
1753
+ extend ::Faraday::MiddlewareRegistry
1754
+
1755
+ # @param key [Object] key to look up in headers
1756
+ # @return [Object] value of the given header name
1757
+ #
1758
+ # source://faraday//lib/faraday/request.rb#89
1759
+ def [](key); end
1760
+
1761
+ # @param key [Object] key of header to write
1762
+ # @param value [Object] value of header
1763
+ #
1764
+ # source://faraday//lib/faraday/request.rb#95
1765
+ def []=(key, value); end
1766
+
1767
+ # Replace request headers, preserving the existing hash type.
1768
+ #
1769
+ # @param hash [Hash] new headers
1770
+ #
1771
+ # source://faraday//lib/faraday/request.rb#58
1772
+ def headers=(hash); end
1773
+
1774
+ # Marshal serialization support.
1775
+ #
1776
+ # @return [Hash] the hash ready to be serialized in Marshal.
1777
+ #
1778
+ # source://faraday//lib/faraday/request.rb#102
1779
+ def marshal_dump; end
1780
+
1781
+ # Marshal serialization support.
1782
+ # Restores the instance variables according to the +serialised+.
1783
+ #
1784
+ # @param serialised [Hash] the serialised object.
1785
+ #
1786
+ # source://faraday//lib/faraday/request.rb#116
1787
+ def marshal_load(serialised); end
1788
+
1789
+ # Replace params, preserving the existing hash type.
1790
+ #
1791
+ # @param hash [Hash] new params
1792
+ #
1793
+ # source://faraday//lib/faraday/request.rb#47
1794
+ def params=(hash); end
1795
+
1796
+ # @return [Env] the Env for this Request
1797
+ #
1798
+ # source://faraday//lib/faraday/request.rb#126
1799
+ def to_env(connection); end
1800
+
1801
+ # Update path and params.
1802
+ #
1803
+ # @param path [URI, String]
1804
+ # @param params [Hash, nil]
1805
+ # @return [void]
1806
+ #
1807
+ # source://faraday//lib/faraday/request.rb#71
1808
+ def url(path, params = T.unsafe(nil)); end
1809
+
1810
+ class << self
1811
+ # @param request_method [String]
1812
+ # @return [Request]
1813
+ # @yield [request] for block customization, if block given
1814
+ # @yieldparam request [Request]
1815
+ #
1816
+ # source://faraday//lib/faraday/request.rb#38
1817
+ def create(request_method); end
1818
+ end
1819
+ end
1820
+
1821
+ # Request middleware for the Authorization HTTP header
1822
+ #
1823
+ # source://faraday//lib/faraday/request/authorization.rb#6
1824
+ class Faraday::Request::Authorization < ::Faraday::Middleware
1825
+ # @param app [#call]
1826
+ # @param type [String, Symbol] Type of Authorization
1827
+ # @param params [Array<String, Proc, #call>] parameters to build the Authorization header.
1828
+ # If the type is `:basic`, then these can be a login and password pair.
1829
+ # Otherwise, a single value is expected that will be appended after the type.
1830
+ # This value can be a proc or an object responding to `.call`, in which case
1831
+ # it will be invoked on each request.
1832
+ # @return [Authorization] a new instance of Authorization
1833
+ #
1834
+ # source://faraday//lib/faraday/request/authorization.rb#16
1835
+ def initialize(app, type, *params); end
1836
+
1837
+ # @param env [Faraday::Env]
1838
+ #
1839
+ # source://faraday//lib/faraday/request/authorization.rb#23
1840
+ def on_request(env); end
1841
+
1842
+ private
1843
+
1844
+ # @param type [String, Symbol]
1845
+ # @param env [Faraday::Env]
1846
+ # @param params [Array]
1847
+ # @return [String] a header value
1848
+ #
1849
+ # source://faraday//lib/faraday/request/authorization.rb#35
1850
+ def header_from(type, env, *params); end
1851
+ end
1852
+
1853
+ # source://faraday//lib/faraday/request/authorization.rb#7
1854
+ Faraday::Request::Authorization::KEY = T.let(T.unsafe(nil), String)
1855
+
1856
+ # Middleware for instrumenting Requests.
1857
+ #
1858
+ # source://faraday//lib/faraday/request/instrumentation.rb#7
1859
+ class Faraday::Request::Instrumentation < ::Faraday::Middleware
1860
+ # Instruments requests using Active Support.
1861
+ #
1862
+ # Measures time spent only for synchronous requests.
1863
+ #
1864
+ # @example Using ActiveSupport::Notifications to measure time spent
1865
+ # for Faraday requests.
1866
+ # ActiveSupport::Notifications
1867
+ # .subscribe('request.faraday') do |name, starts, ends, _, env|
1868
+ # url = env[:url]
1869
+ # http_method = env[:method].to_s.upcase
1870
+ # duration = ends - starts
1871
+ # $stderr.puts '[%s] %s %s (%.3f s)' %
1872
+ # [url.host, http_method, url.request_uri, duration]
1873
+ # end
1874
+ # @option options
1875
+ # @option options
1876
+ # @param app [#call]
1877
+ # @param options [nil, Hash] Options hash
1878
+ # @return [Instrumentation] a new instance of Instrumentation
1879
+ #
1880
+ # source://faraday//lib/faraday/request/instrumentation.rb#40
1881
+ def initialize(app, options = T.unsafe(nil)); end
1882
+
1883
+ # @param env [Faraday::Env]
1884
+ #
1885
+ # source://faraday//lib/faraday/request/instrumentation.rb#47
1886
+ def call(env); end
1887
+ end
1888
+
1889
+ # Options class used in Request::Instrumentation class.
1890
+ #
1891
+ # source://faraday//lib/faraday/request/instrumentation.rb#9
1892
+ class Faraday::Request::Instrumentation::Options < ::Faraday::Options
1893
+ # @return [Class]
1894
+ #
1895
+ # source://faraday//lib/faraday/request/instrumentation.rb#15
1896
+ def instrumenter; end
1897
+
1898
+ # @return [String]
1899
+ #
1900
+ # source://faraday//lib/faraday/request/instrumentation.rb#10
1901
+ def name; end
1902
+ end
1903
+
1904
+ # Request middleware that encodes the body as JSON.
1905
+ #
1906
+ # Processes only requests with matching Content-type or those without a type.
1907
+ # If a request doesn't have a type but has a body, it sets the Content-type
1908
+ # to JSON MIME-type.
1909
+ #
1910
+ # Doesn't try to encode bodies that already are in string form.
1911
+ #
1912
+ # source://faraday//lib/faraday/request/json.rb#14
1913
+ class Faraday::Request::Json < ::Faraday::Middleware
1914
+ # source://faraday//lib/faraday/request/json.rb#18
1915
+ def on_request(env); end
1916
+
1917
+ private
1918
+
1919
+ # @return [Boolean]
1920
+ #
1921
+ # source://faraday//lib/faraday/request/json.rb#42
1922
+ def body?(env); end
1923
+
1924
+ # source://faraday//lib/faraday/request/json.rb#26
1925
+ def encode(data); end
1926
+
1927
+ # @yield []
1928
+ #
1929
+ # source://faraday//lib/faraday/request/json.rb#30
1930
+ def match_content_type(env); end
1931
+
1932
+ # @return [Boolean]
1933
+ #
1934
+ # source://faraday//lib/faraday/request/json.rb#37
1935
+ def process_request?(env); end
1936
+
1937
+ # source://faraday//lib/faraday/request/json.rb#46
1938
+ def request_type(env); end
1939
+ end
1940
+
1941
+ # source://faraday//lib/faraday/request/json.rb#15
1942
+ Faraday::Request::Json::MIME_TYPE = T.let(T.unsafe(nil), String)
1943
+
1944
+ # source://faraday//lib/faraday/request/json.rb#16
1945
+ Faraday::Request::Json::MIME_TYPE_REGEX = T.let(T.unsafe(nil), Regexp)
1946
+
1947
+ # Middleware for supporting urlencoded requests.
1948
+ #
1949
+ # source://faraday//lib/faraday/request/url_encoded.rb#6
1950
+ class Faraday::Request::UrlEncoded < ::Faraday::Middleware
1951
+ # Encodes as "application/x-www-form-urlencoded" if not already encoded or
1952
+ # of another type.
1953
+ #
1954
+ # @param env [Faraday::Env]
1955
+ #
1956
+ # source://faraday//lib/faraday/request/url_encoded.rb#20
1957
+ def call(env); end
1958
+
1959
+ # @param env [Faraday::Env]
1960
+ # @yield [request_body] Body of the request
1961
+ #
1962
+ # source://faraday//lib/faraday/request/url_encoded.rb#30
1963
+ def match_content_type(env); end
1964
+
1965
+ # @param env [Faraday::Env]
1966
+ # @return [Boolean] True if the request has a body and its Content-Type is
1967
+ # urlencoded.
1968
+ #
1969
+ # source://faraday//lib/faraday/request/url_encoded.rb#43
1970
+ def process_request?(env); end
1971
+
1972
+ # @param env [Faraday::Env]
1973
+ # @return [String]
1974
+ #
1975
+ # source://faraday//lib/faraday/request/url_encoded.rb#51
1976
+ def request_type(env); end
1977
+
1978
+ class << self
1979
+ # Returns the value of attribute mime_type.
1980
+ #
1981
+ # source://faraday//lib/faraday/request/url_encoded.rb#12
1982
+ def mime_type; end
1983
+
1984
+ # Sets the attribute mime_type
1985
+ #
1986
+ # @param value the value to set the attribute mime_type to.
1987
+ #
1988
+ # source://faraday//lib/faraday/request/url_encoded.rb#12
1989
+ def mime_type=(_arg0); end
1990
+ end
1991
+ end
1992
+
1993
+ # source://faraday//lib/faraday/request/url_encoded.rb#8
1994
+ Faraday::Request::UrlEncoded::CONTENT_TYPE = T.let(T.unsafe(nil), String)
1995
+
1996
+ # RequestOptions contains the configurable properties for a Faraday request.
1997
+ #
1998
+ # source://faraday//lib/faraday/options/request_options.rb#8
1999
+ class Faraday::RequestOptions < ::Faraday::Options
2000
+ # source://faraday//lib/faraday/options/request_options.rb#10
2001
+ def []=(key, value); end
2002
+
2003
+ # @return [Boolean]
2004
+ #
2005
+ # source://faraday//lib/faraday/options/request_options.rb#18
2006
+ def stream_response?; end
2007
+ end
2008
+
2009
+ # Raised by Faraday::Response::RaiseError in case of a 404 response.
2010
+ #
2011
+ # source://faraday//lib/faraday/error.rb#102
2012
+ class Faraday::ResourceNotFound < ::Faraday::ClientError; end
2013
+
2014
+ # Response represents an HTTP response from making an HTTP request.
2015
+ #
2016
+ # source://faraday//lib/faraday/response.rb#7
2017
+ class Faraday::Response
2018
+ extend ::Forwardable
2019
+ extend ::Faraday::MiddlewareRegistry
2020
+
2021
+ # @return [Response] a new instance of Response
2022
+ #
2023
+ # source://faraday//lib/faraday/response.rb#11
2024
+ def initialize(env = T.unsafe(nil)); end
2025
+
2026
+ # source://forwardable/1.3.2/forwardable.rb#229
2027
+ def [](*args, &block); end
2028
+
2029
+ # Expand the env with more properties, without overriding existing ones.
2030
+ # Useful for applying request params after restoring a marshalled Response.
2031
+ #
2032
+ # source://faraday//lib/faraday/response.rb#79
2033
+ def apply_request(request_env); end
2034
+
2035
+ # source://faraday//lib/faraday/response.rb#32
2036
+ def body; end
2037
+
2038
+ # Returns the value of attribute env.
2039
+ #
2040
+ # source://faraday//lib/faraday/response.rb#16
2041
+ def env; end
2042
+
2043
+ # source://faraday//lib/faraday/response.rb#49
2044
+ def finish(env); end
2045
+
2046
+ # @return [Boolean]
2047
+ #
2048
+ # source://faraday//lib/faraday/response.rb#36
2049
+ def finished?; end
2050
+
2051
+ # source://faraday//lib/faraday/response.rb#26
2052
+ def headers; end
2053
+
2054
+ # because @on_complete_callbacks cannot be marshalled
2055
+ #
2056
+ # source://faraday//lib/faraday/response.rb#69
2057
+ def marshal_dump; end
2058
+
2059
+ # source://faraday//lib/faraday/response.rb#73
2060
+ def marshal_load(env); end
2061
+
2062
+ # source://faraday//lib/faraday/response.rb#40
2063
+ def on_complete(&block); end
2064
+
2065
+ # source://faraday//lib/faraday/response.rb#22
2066
+ def reason_phrase; end
2067
+
2068
+ # source://faraday//lib/faraday/response.rb#18
2069
+ def status; end
2070
+
2071
+ # @return [Boolean]
2072
+ #
2073
+ # source://faraday//lib/faraday/response.rb#57
2074
+ def success?; end
2075
+
2076
+ # source://faraday//lib/faraday/response.rb#61
2077
+ def to_hash; end
2078
+ end
2079
+
2080
+ # Parse response bodies as JSON.
2081
+ #
2082
+ # source://faraday//lib/faraday/response/json.rb#8
2083
+ class Faraday::Response::Json < ::Faraday::Middleware
2084
+ # @return [Json] a new instance of Json
2085
+ #
2086
+ # source://faraday//lib/faraday/response/json.rb#9
2087
+ def initialize(app = T.unsafe(nil), parser_options: T.unsafe(nil), content_type: T.unsafe(nil), preserve_raw: T.unsafe(nil)); end
2088
+
2089
+ # source://faraday//lib/faraday/response/json.rb#16
2090
+ def on_complete(env); end
2091
+
2092
+ private
2093
+
2094
+ # source://faraday//lib/faraday/response/json.rb#29
2095
+ def parse(body); end
2096
+
2097
+ # @return [Boolean]
2098
+ #
2099
+ # source://faraday//lib/faraday/response/json.rb#33
2100
+ def parse_response?(env); end
2101
+
2102
+ # source://faraday//lib/faraday/response/json.rb#22
2103
+ def process_response(env); end
2104
+
2105
+ # @return [Boolean]
2106
+ #
2107
+ # source://faraday//lib/faraday/response/json.rb#38
2108
+ def process_response_type?(env); end
2109
+
2110
+ # source://faraday//lib/faraday/response/json.rb#45
2111
+ def response_type(env); end
2112
+ end
2113
+
2114
+ # Logger is a middleware that logs internal events in the HTTP request
2115
+ # lifecycle to a given Logger object. By default, this logs to STDOUT. See
2116
+ # Faraday::Logging::Formatter to see specifically what is logged.
2117
+ #
2118
+ # source://faraday//lib/faraday/response/logger.rb#12
2119
+ class Faraday::Response::Logger < ::Faraday::Middleware
2120
+ # @return [Logger] a new instance of Logger
2121
+ # @yield [@formatter]
2122
+ #
2123
+ # source://faraday//lib/faraday/response/logger.rb#13
2124
+ def initialize(app, logger = T.unsafe(nil), options = T.unsafe(nil)); end
2125
+
2126
+ # source://faraday//lib/faraday/response/logger.rb#21
2127
+ def call(env); end
2128
+
2129
+ # source://faraday//lib/faraday/response/logger.rb#26
2130
+ def on_complete(env); end
2131
+
2132
+ # source://faraday//lib/faraday/response/logger.rb#30
2133
+ def on_error(exc); end
2134
+ end
2135
+
2136
+ # RaiseError is a Faraday middleware that raises exceptions on common HTTP
2137
+ # client or server error responses.
2138
+ #
2139
+ # source://faraday//lib/faraday/response/raise_error.rb#8
2140
+ class Faraday::Response::RaiseError < ::Faraday::Middleware
2141
+ # source://faraday//lib/faraday/response/raise_error.rb#13
2142
+ def on_complete(env); end
2143
+
2144
+ # source://faraday//lib/faraday/response/raise_error.rb#56
2145
+ def query_params(env); end
2146
+
2147
+ # source://faraday//lib/faraday/response/raise_error.rb#40
2148
+ def response_values(env); end
2149
+ end
2150
+
2151
+ # source://faraday//lib/faraday/response/raise_error.rb#9
2152
+ Faraday::Response::RaiseError::ClientErrorStatuses = T.let(T.unsafe(nil), Range)
2153
+
2154
+ # source://faraday//lib/faraday/response/raise_error.rb#10
2155
+ Faraday::Response::RaiseError::ServerErrorStatuses = T.let(T.unsafe(nil), Range)
2156
+
2157
+ # A unified client error for SSL errors.
2158
+ #
2159
+ # source://faraday//lib/faraday/error.rb#141
2160
+ class Faraday::SSLError < ::Faraday::Error; end
2161
+
2162
+ # SSL-related options.
2163
+ #
2164
+ # source://faraday//lib/faraday/options/ssl_options.rb#52
2165
+ class Faraday::SSLOptions < ::Faraday::Options
2166
+ # @return [Boolean] true if should not verify
2167
+ #
2168
+ # source://faraday//lib/faraday/options/ssl_options.rb#60
2169
+ def disable?; end
2170
+
2171
+ # @return [Boolean] true if should verify
2172
+ #
2173
+ # source://faraday//lib/faraday/options/ssl_options.rb#55
2174
+ def verify?; end
2175
+
2176
+ # @return [Boolean] true if should verify_hostname
2177
+ #
2178
+ # source://faraday//lib/faraday/options/ssl_options.rb#65
2179
+ def verify_hostname?; end
2180
+ end
2181
+
2182
+ # Faraday server error class. Represents 5xx status responses.
2183
+ #
2184
+ # source://faraday//lib/faraday/error.rb#118
2185
+ class Faraday::ServerError < ::Faraday::Error; end
2186
+
2187
+ # A unified client error for timeouts.
2188
+ #
2189
+ # source://faraday//lib/faraday/error.rb#122
2190
+ class Faraday::TimeoutError < ::Faraday::ServerError
2191
+ # @return [TimeoutError] a new instance of TimeoutError
2192
+ #
2193
+ # source://faraday//lib/faraday/error.rb#123
2194
+ def initialize(exc = T.unsafe(nil), response = T.unsafe(nil)); end
2195
+ end
2196
+
2197
+ # Raised by Faraday::Response::RaiseError in case of a 401 response.
2198
+ #
2199
+ # source://faraday//lib/faraday/error.rb#94
2200
+ class Faraday::UnauthorizedError < ::Faraday::ClientError; end
2201
+
2202
+ # Raised by Faraday::Response::RaiseError in case of a 422 response.
2203
+ #
2204
+ # source://faraday//lib/faraday/error.rb#114
2205
+ class Faraday::UnprocessableEntityError < ::Faraday::ClientError; end
2206
+
2207
+ # Utils contains various static helper methods.
2208
+ #
2209
+ # source://faraday//lib/faraday/utils/headers.rb#4
2210
+ module Faraday::Utils
2211
+ private
2212
+
2213
+ # Normalize URI() behavior across Ruby versions
2214
+ #
2215
+ # url - A String or URI.
2216
+ #
2217
+ # Returns a parsed URI.
2218
+ #
2219
+ # source://faraday//lib/faraday/utils.rb#71
2220
+ def URI(url); end
2221
+
2222
+ # source://faraday//lib/faraday/utils.rb#56
2223
+ def basic_header_from(login, pass); end
2224
+
2225
+ # source://faraday//lib/faraday/utils.rb#17
2226
+ def build_nested_query(params); end
2227
+
2228
+ # source://faraday//lib/faraday/utils.rb#13
2229
+ def build_query(params); end
2230
+
2231
+ # Recursive hash merge
2232
+ #
2233
+ # source://faraday//lib/faraday/utils.rb#114
2234
+ def deep_merge(source, hash); end
2235
+
2236
+ # Recursive hash update
2237
+ #
2238
+ # source://faraday//lib/faraday/utils.rb#102
2239
+ def deep_merge!(target, hash); end
2240
+
2241
+ # source://faraday//lib/faraday/utils.rb#52
2242
+ def default_params_encoder; end
2243
+
2244
+ # source://faraday//lib/faraday/utils.rb#21
2245
+ def default_space_encoding; end
2246
+
2247
+ # source://faraday//lib/faraday/utils.rb#81
2248
+ def default_uri_parser; end
2249
+
2250
+ # source://faraday//lib/faraday/utils.rb#85
2251
+ def default_uri_parser=(parser); end
2252
+
2253
+ # source://faraday//lib/faraday/utils.rb#31
2254
+ def escape(str); end
2255
+
2256
+ # Receives a String or URI and returns just
2257
+ # the path with the query string sorted.
2258
+ #
2259
+ # source://faraday//lib/faraday/utils.rb#95
2260
+ def normalize_path(url); end
2261
+
2262
+ # source://faraday//lib/faraday/utils.rb#48
2263
+ def parse_nested_query(query); end
2264
+
2265
+ # Adapted from Rack
2266
+ #
2267
+ # source://faraday//lib/faraday/utils.rb#44
2268
+ def parse_query(query); end
2269
+
2270
+ # source://faraday//lib/faraday/utils.rb#118
2271
+ def sort_query_params(query); end
2272
+
2273
+ # source://faraday//lib/faraday/utils.rb#37
2274
+ def unescape(str); end
2275
+
2276
+ class << self
2277
+ # Normalize URI() behavior across Ruby versions
2278
+ #
2279
+ # url - A String or URI.
2280
+ #
2281
+ # Returns a parsed URI.
2282
+ #
2283
+ # source://faraday//lib/faraday/utils.rb#71
2284
+ def URI(url); end
2285
+
2286
+ # source://faraday//lib/faraday/utils.rb#56
2287
+ def basic_header_from(login, pass); end
2288
+
2289
+ # source://faraday//lib/faraday/utils.rb#17
2290
+ def build_nested_query(params); end
2291
+
2292
+ # source://faraday//lib/faraday/utils.rb#13
2293
+ def build_query(params); end
2294
+
2295
+ # Recursive hash merge
2296
+ #
2297
+ # source://faraday//lib/faraday/utils.rb#114
2298
+ def deep_merge(source, hash); end
2299
+
2300
+ # Recursive hash update
2301
+ #
2302
+ # source://faraday//lib/faraday/utils.rb#102
2303
+ def deep_merge!(target, hash); end
2304
+
2305
+ # source://faraday//lib/faraday/utils.rb#52
2306
+ def default_params_encoder; end
2307
+
2308
+ # Sets the attribute default_params_encoder
2309
+ #
2310
+ # @param value the value to set the attribute default_params_encoder to.
2311
+ #
2312
+ # source://faraday//lib/faraday/utils.rb#63
2313
+ def default_params_encoder=(_arg0); end
2314
+
2315
+ # source://faraday//lib/faraday/utils.rb#21
2316
+ def default_space_encoding; end
2317
+
2318
+ # Sets the attribute default_space_encoding
2319
+ #
2320
+ # @param value the value to set the attribute default_space_encoding to.
2321
+ #
2322
+ # source://faraday//lib/faraday/utils.rb#26
2323
+ def default_space_encoding=(_arg0); end
2324
+
2325
+ # source://faraday//lib/faraday/utils.rb#81
2326
+ def default_uri_parser; end
2327
+
2328
+ # source://faraday//lib/faraday/utils.rb#85
2329
+ def default_uri_parser=(parser); end
2330
+
2331
+ # source://faraday//lib/faraday/utils.rb#31
2332
+ def escape(str); end
2333
+
2334
+ # Receives a String or URI and returns just
2335
+ # the path with the query string sorted.
2336
+ #
2337
+ # source://faraday//lib/faraday/utils.rb#95
2338
+ def normalize_path(url); end
2339
+
2340
+ # source://faraday//lib/faraday/utils.rb#48
2341
+ def parse_nested_query(query); end
2342
+
2343
+ # Adapted from Rack
2344
+ #
2345
+ # source://faraday//lib/faraday/utils.rb#44
2346
+ def parse_query(query); end
2347
+
2348
+ # source://faraday//lib/faraday/utils.rb#118
2349
+ def sort_query_params(query); end
2350
+
2351
+ # source://faraday//lib/faraday/utils.rb#37
2352
+ def unescape(str); end
2353
+ end
2354
+ end
2355
+
2356
+ # source://faraday//lib/faraday/utils.rb#41
2357
+ Faraday::Utils::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp)
2358
+
2359
+ # source://faraday//lib/faraday/utils.rb#29
2360
+ Faraday::Utils::ESCAPE_RE = T.let(T.unsafe(nil), Regexp)
2361
+
2362
+ # A case-insensitive Hash that preserves the original case of a header
2363
+ # when set.
2364
+ #
2365
+ # Adapted from Rack::Utils::HeaderHash
2366
+ #
2367
+ # source://faraday//lib/faraday/utils/headers.rb#9
2368
+ class Faraday::Utils::Headers < ::Hash
2369
+ # @return [Headers] a new instance of Headers
2370
+ #
2371
+ # source://faraday//lib/faraday/utils/headers.rb#20
2372
+ def initialize(hash = T.unsafe(nil)); end
2373
+
2374
+ # source://faraday//lib/faraday/utils/headers.rb#52
2375
+ def [](key); end
2376
+
2377
+ # source://faraday//lib/faraday/utils/headers.rb#57
2378
+ def []=(key, val); end
2379
+
2380
+ # source://faraday//lib/faraday/utils/headers.rb#71
2381
+ def delete(key); end
2382
+
2383
+ # source://faraday//lib/faraday/utils/headers.rb#65
2384
+ def fetch(key, *args, &block); end
2385
+
2386
+ # @return [Boolean]
2387
+ #
2388
+ # source://faraday//lib/faraday/utils/headers.rb#80
2389
+ def has_key?(key); end
2390
+
2391
+ # @return [Boolean]
2392
+ #
2393
+ # source://faraday//lib/faraday/utils/headers.rb#80
2394
+ def include?(key); end
2395
+
2396
+ # source://faraday//lib/faraday/utils/headers.rb#26
2397
+ def initialize_names; end
2398
+
2399
+ # @return [Boolean]
2400
+ #
2401
+ # source://faraday//lib/faraday/utils/headers.rb#80
2402
+ def key?(key); end
2403
+
2404
+ # @return [Boolean]
2405
+ #
2406
+ # source://faraday//lib/faraday/utils/headers.rb#80
2407
+ def member?(key); end
2408
+
2409
+ # source://faraday//lib/faraday/utils/headers.rb#95
2410
+ def merge(other); end
2411
+
2412
+ # source://faraday//lib/faraday/utils/headers.rb#88
2413
+ def merge!(other); end
2414
+
2415
+ # source://faraday//lib/faraday/utils/headers.rb#111
2416
+ def parse(header_string); end
2417
+
2418
+ # source://faraday//lib/faraday/utils/headers.rb#100
2419
+ def replace(other); end
2420
+
2421
+ # source://faraday//lib/faraday/utils/headers.rb#107
2422
+ def to_hash; end
2423
+
2424
+ # source://faraday//lib/faraday/utils/headers.rb#88
2425
+ def update(other); end
2426
+
2427
+ protected
2428
+
2429
+ # Returns the value of attribute names.
2430
+ #
2431
+ # source://faraday//lib/faraday/utils/headers.rb#129
2432
+ def names; end
2433
+
2434
+ private
2435
+
2436
+ # Join multiple values with a comma.
2437
+ #
2438
+ # source://faraday//lib/faraday/utils/headers.rb#134
2439
+ def add_parsed(key, value); end
2440
+
2441
+ # on dup/clone, we need to duplicate @names hash
2442
+ #
2443
+ # source://faraday//lib/faraday/utils/headers.rb#31
2444
+ def initialize_copy(other); end
2445
+
2446
+ class << self
2447
+ # source://faraday//lib/faraday/utils/headers.rb#14
2448
+ def allocate; end
2449
+
2450
+ # source://faraday//lib/faraday/utils/headers.rb#10
2451
+ def from(value); end
2452
+ end
2453
+ end
2454
+
2455
+ # symbol -> string mapper + cache
2456
+ #
2457
+ # source://faraday//lib/faraday/utils/headers.rb#40
2458
+ Faraday::Utils::Headers::KeyMap = T.let(T.unsafe(nil), Hash)
2459
+
2460
+ # A hash with stringified keys.
2461
+ #
2462
+ # source://faraday//lib/faraday/utils/params_hash.rb#6
2463
+ class Faraday::Utils::ParamsHash < ::Hash
2464
+ # source://faraday//lib/faraday/utils/params_hash.rb#7
2465
+ def [](key); end
2466
+
2467
+ # source://faraday//lib/faraday/utils/params_hash.rb#11
2468
+ def []=(key, value); end
2469
+
2470
+ # source://faraday//lib/faraday/utils/params_hash.rb#15
2471
+ def delete(key); end
2472
+
2473
+ # @return [Boolean]
2474
+ #
2475
+ # source://faraday//lib/faraday/utils/params_hash.rb#19
2476
+ def has_key?(key); end
2477
+
2478
+ # @return [Boolean]
2479
+ #
2480
+ # source://faraday//lib/faraday/utils/params_hash.rb#19
2481
+ def include?(key); end
2482
+
2483
+ # @return [Boolean]
2484
+ #
2485
+ # source://faraday//lib/faraday/utils/params_hash.rb#19
2486
+ def key?(key); end
2487
+
2488
+ # @return [Boolean]
2489
+ #
2490
+ # source://faraday//lib/faraday/utils/params_hash.rb#19
2491
+ def member?(key); end
2492
+
2493
+ # source://faraday//lib/faraday/utils/params_hash.rb#35
2494
+ def merge(params); end
2495
+
2496
+ # source://faraday//lib/faraday/utils/params_hash.rb#27
2497
+ def merge!(params); end
2498
+
2499
+ # source://faraday//lib/faraday/utils/params_hash.rb#44
2500
+ def merge_query(query, encoder = T.unsafe(nil)); end
2501
+
2502
+ # source://faraday//lib/faraday/utils/params_hash.rb#39
2503
+ def replace(other); end
2504
+
2505
+ # source://faraday//lib/faraday/utils/params_hash.rb#50
2506
+ def to_query(encoder = T.unsafe(nil)); end
2507
+
2508
+ # source://faraday//lib/faraday/utils/params_hash.rb#27
2509
+ def update(params); end
2510
+
2511
+ private
2512
+
2513
+ # source://faraday//lib/faraday/utils/params_hash.rb#56
2514
+ def convert_key(key); end
2515
+ end
2516
+
2517
+ # source://faraday//lib/faraday/version.rb#4
2518
+ Faraday::VERSION = T.let(T.unsafe(nil), String)