whatsapp_sdk 0.3.0 → 0.4.0

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