lunchmoney 0.10.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 (142) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.github/dependabot.yml +18 -0
  4. data/.github/workflows/build_and_publish_yard_docs.yml +47 -0
  5. data/.github/workflows/ci.yml +58 -0
  6. data/.github/workflows/dependabot-rbi-updater.yml +43 -0
  7. data/.github/workflows/publish_gem.yml +31 -0
  8. data/.gitignore +62 -0
  9. data/.rubocop.yml +45 -0
  10. data/.ruby-version +1 -0
  11. data/.toys/.toys.rb +10 -0
  12. data/.toys/ci.rb +22 -0
  13. data/.toys/rbi.rb +60 -0
  14. data/.toys/rubocop.rb +10 -0
  15. data/.toys/spoom.rb +15 -0
  16. data/.toys/typecheck.rb +5 -0
  17. data/.yardopts +2 -0
  18. data/Appraisals +22 -0
  19. data/Gemfile +25 -0
  20. data/Gemfile.lock +174 -0
  21. data/LICENSE +21 -0
  22. data/README.md +57 -0
  23. data/bin/console +16 -0
  24. data/bin/rubocop +27 -0
  25. data/bin/setup +8 -0
  26. data/bin/spoom +27 -0
  27. data/bin/srb +27 -0
  28. data/bin/tapioca +27 -0
  29. data/bin/toys +27 -0
  30. data/bin/yard +27 -0
  31. data/lib/lunchmoney/api.rb +147 -0
  32. data/lib/lunchmoney/api_call.rb +109 -0
  33. data/lib/lunchmoney/assets/asset.rb +89 -0
  34. data/lib/lunchmoney/assets/asset_calls.rb +96 -0
  35. data/lib/lunchmoney/budget/budget.rb +74 -0
  36. data/lib/lunchmoney/budget/budget_calls.rb +82 -0
  37. data/lib/lunchmoney/budget/config.rb +38 -0
  38. data/lib/lunchmoney/budget/data.rb +42 -0
  39. data/lib/lunchmoney/categories/category/category.rb +52 -0
  40. data/lib/lunchmoney/categories/category/child_category.rb +42 -0
  41. data/lib/lunchmoney/categories/category_calls.rb +195 -0
  42. data/lib/lunchmoney/configuration.rb +26 -0
  43. data/lib/lunchmoney/crypto/crypto/crypto.rb +43 -0
  44. data/lib/lunchmoney/crypto/crypto/crypto_base.rb +65 -0
  45. data/lib/lunchmoney/crypto/crypto_calls.rb +49 -0
  46. data/lib/lunchmoney/data_object.rb +25 -0
  47. data/lib/lunchmoney/errors.rb +19 -0
  48. data/lib/lunchmoney/exceptions.rb +19 -0
  49. data/lib/lunchmoney/plaid_accounts/plaid_account.rb +73 -0
  50. data/lib/lunchmoney/plaid_accounts/plaid_account_calls.rb +38 -0
  51. data/lib/lunchmoney/recurring_expenses/recurring_expense/recurring_expense.rb +65 -0
  52. data/lib/lunchmoney/recurring_expenses/recurring_expense/recurring_expense_base.rb +29 -0
  53. data/lib/lunchmoney/recurring_expenses/recurring_expense_calls.rb +28 -0
  54. data/lib/lunchmoney/tags/tag/tag.rb +20 -0
  55. data/lib/lunchmoney/tags/tag/tag_base.rb +21 -0
  56. data/lib/lunchmoney/tags/tag_calls.rb +20 -0
  57. data/lib/lunchmoney/transactions/transaction/child_transaction.rb +31 -0
  58. data/lib/lunchmoney/transactions/transaction/split.rb +24 -0
  59. data/lib/lunchmoney/transactions/transaction/transaction.rb +156 -0
  60. data/lib/lunchmoney/transactions/transaction/transaction_base.rb +52 -0
  61. data/lib/lunchmoney/transactions/transaction/transaction_modification_base.rb +30 -0
  62. data/lib/lunchmoney/transactions/transaction/update_transaction.rb +43 -0
  63. data/lib/lunchmoney/transactions/transaction_calls.rb +218 -0
  64. data/lib/lunchmoney/user/user.rb +36 -0
  65. data/lib/lunchmoney/user/user_calls.rb +19 -0
  66. data/lib/lunchmoney/validators.rb +43 -0
  67. data/lib/lunchmoney/version.rb +7 -0
  68. data/lib/lunchmoney.rb +54 -0
  69. data/lunchmoney.gemspec +34 -0
  70. data/sorbet/config +5 -0
  71. data/sorbet/rbi/annotations/.gitattributes +1 -0
  72. data/sorbet/rbi/annotations/activesupport.rbi +410 -0
  73. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  74. data/sorbet/rbi/annotations/mocha.rbi +34 -0
  75. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  76. data/sorbet/rbi/annotations/webmock.rbi +9 -0
  77. data/sorbet/rbi/dsl/.gitattributes +1 -0
  78. data/sorbet/rbi/dsl/active_support/callbacks.rbi +22 -0
  79. data/sorbet/rbi/gems/.gitattributes +1 -0
  80. data/sorbet/rbi/gems/activesupport@7.1.3.rbi +18004 -0
  81. data/sorbet/rbi/gems/addressable@2.8.6.rbi +1993 -0
  82. data/sorbet/rbi/gems/appraisal@2.5.0.rbi +621 -0
  83. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  84. data/sorbet/rbi/gems/base64@0.2.0.rbi +508 -0
  85. data/sorbet/rbi/gems/bigdecimal@3.1.6.rbi +77 -0
  86. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  87. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +11590 -0
  88. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +8 -0
  89. data/sorbet/rbi/gems/crack@0.4.5.rbi +144 -0
  90. data/sorbet/rbi/gems/dotenv@2.8.1.rbi +234 -0
  91. data/sorbet/rbi/gems/drb@2.2.0.rbi +1346 -0
  92. data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
  93. data/sorbet/rbi/gems/faraday-net_http@3.1.0.rbi +146 -0
  94. data/sorbet/rbi/gems/faraday@2.9.0.rbi +2911 -0
  95. data/sorbet/rbi/gems/hashdiff@1.1.0.rbi +352 -0
  96. data/sorbet/rbi/gems/i18n@1.14.1.rbi +2325 -0
  97. data/sorbet/rbi/gems/json@2.7.1.rbi +1561 -0
  98. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  99. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  100. data/sorbet/rbi/gems/minitest@5.21.2.rbi +2197 -0
  101. data/sorbet/rbi/gems/mocha@2.1.0.rbi +3934 -0
  102. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +93 -0
  103. data/sorbet/rbi/gems/net-http@0.4.1.rbi +4068 -0
  104. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  105. data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
  106. data/sorbet/rbi/gems/parser@3.3.0.5.rbi +5472 -0
  107. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  108. data/sorbet/rbi/gems/prism@0.19.0.rbi +29883 -0
  109. data/sorbet/rbi/gems/pry-sorbet@0.2.1.rbi +966 -0
  110. data/sorbet/rbi/gems/pry@0.14.2.rbi +10077 -0
  111. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +935 -0
  112. data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
  113. data/sorbet/rbi/gems/rack@3.0.8.rbi +5183 -0
  114. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  115. data/sorbet/rbi/gems/rake@13.1.0.rbi +3027 -0
  116. data/sorbet/rbi/gems/rbi@0.1.6.rbi +2922 -0
  117. data/sorbet/rbi/gems/regexp_parser@2.9.0.rbi +3771 -0
  118. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
  119. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7117 -0
  120. data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +2576 -0
  121. data/sorbet/rbi/gems/rubocop-rails@2.23.1.rbi +9175 -0
  122. data/sorbet/rbi/gems/rubocop-shopify@2.14.0.rbi +8 -0
  123. data/sorbet/rbi/gems/rubocop-sorbet@0.7.6.rbi +1510 -0
  124. data/sorbet/rbi/gems/rubocop@1.60.1.rbi +57356 -0
  125. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  126. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  127. data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
  128. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
  129. data/sorbet/rbi/gems/tapioca@0.12.0.rbi +3506 -0
  130. data/sorbet/rbi/gems/thor@1.3.0.rbi +4312 -0
  131. data/sorbet/rbi/gems/toys-core@0.15.4.rbi +9462 -0
  132. data/sorbet/rbi/gems/toys@0.15.4.rbi +243 -0
  133. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  134. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
  135. data/sorbet/rbi/gems/uri@0.13.0.rbi +2327 -0
  136. data/sorbet/rbi/gems/vcr@6.2.0.rbi +3036 -0
  137. data/sorbet/rbi/gems/webmock@3.19.1.rbi +1768 -0
  138. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  139. data/sorbet/rbi/gems/yard@0.9.34.rbi +18084 -0
  140. data/sorbet/shims/module.rbi +6 -0
  141. data/sorbet/tapioca/require.rb +10 -0
  142. metadata +228 -0
@@ -0,0 +1,2911 @@
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 an URL argument and an options hash
96
+ # Faraday.new 'http://faraday.com', params: { page: 1 }
97
+ # # => Faraday::Connection to http://faraday.com?page=1
98
+ # @example With everything in an options hash
99
+ # Faraday.new url: 'http://faraday.com',
100
+ # 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#187
318
+ class Faraday::Adapter::Test::Stub < ::Struct
319
+ # Returns the value of attribute block
320
+ #
321
+ # @return [Object] the current value of block
322
+ def block; end
323
+
324
+ # Sets the attribute block
325
+ #
326
+ # @param value [Object] the value to set the attribute block to.
327
+ # @return [Object] the newly set value
328
+ def block=(_); end
329
+
330
+ # Returns the value of attribute body
331
+ #
332
+ # @return [Object] the current value of body
333
+ def body; end
334
+
335
+ # Sets the attribute body
336
+ #
337
+ # @param value [Object] the value to set the attribute body to.
338
+ # @return [Object] the newly set value
339
+ def body=(_); end
340
+
341
+ # @return [Boolean]
342
+ #
343
+ # source://faraday//lib/faraday/adapter/test.rb#242
344
+ def body_match?(request_body); end
345
+
346
+ # Returns the value of attribute headers
347
+ #
348
+ # @return [Object] the current value of headers
349
+ def headers; end
350
+
351
+ # Sets the attribute headers
352
+ #
353
+ # @param value [Object] the value to set the attribute headers to.
354
+ # @return [Object] the newly set value
355
+ def headers=(_); end
356
+
357
+ # @return [Boolean]
358
+ #
359
+ # source://faraday//lib/faraday/adapter/test.rb#227
360
+ def headers_match?(request_headers); end
361
+
362
+ # Returns the value of attribute host
363
+ #
364
+ # @return [Object] the current value of host
365
+ def host; end
366
+
367
+ # Sets the attribute host
368
+ #
369
+ # @param value [Object] the value to set the attribute host to.
370
+ # @return [Object] the newly set value
371
+ def host=(_); end
372
+
373
+ # @param env [Faraday::Env]
374
+ # @return [Boolean]
375
+ #
376
+ # source://faraday//lib/faraday/adapter/test.rb#189
377
+ def matches?(env); end
378
+
379
+ # @param env [Faraday::Env]
380
+ # @return [Boolean]
381
+ #
382
+ # source://faraday//lib/faraday/adapter/test.rb#214
383
+ def params_match?(env); end
384
+
385
+ # Returns the value of attribute path
386
+ #
387
+ # @return [Object] the current value of path
388
+ def path; end
389
+
390
+ # Sets the attribute path
391
+ #
392
+ # @param value [Object] the value to set the attribute path to.
393
+ # @return [Object] the newly set value
394
+ def path=(_); end
395
+
396
+ # @return [Boolean]
397
+ #
398
+ # source://faraday//lib/faraday/adapter/test.rb#205
399
+ def path_match?(request_path, meta); end
400
+
401
+ # Returns the value of attribute query
402
+ #
403
+ # @return [Object] the current value of query
404
+ def query; end
405
+
406
+ # Sets the attribute query
407
+ #
408
+ # @param value [Object] the value to set the attribute query to.
409
+ # @return [Object] the newly set value
410
+ def query=(_); end
411
+
412
+ # Returns the value of attribute strict_mode
413
+ #
414
+ # @return [Object] the current value of strict_mode
415
+ def strict_mode; end
416
+
417
+ # Sets the attribute strict_mode
418
+ #
419
+ # @param value [Object] the value to set the attribute strict_mode to.
420
+ # @return [Object] the newly set value
421
+ def strict_mode=(_); end
422
+
423
+ # source://faraday//lib/faraday/adapter/test.rb#253
424
+ def to_s; end
425
+
426
+ class << self
427
+ def [](*_arg0); end
428
+ def inspect; end
429
+ def keyword_init?; end
430
+ def members; end
431
+ def new(*_arg0); end
432
+ end
433
+ end
434
+
435
+ # A stack of Stubs
436
+ #
437
+ # source://faraday//lib/faraday/adapter/test.rb#66
438
+ class Faraday::Adapter::Test::Stubs
439
+ # @return [Stubs] a new instance of Stubs
440
+ # @yield [_self]
441
+ # @yieldparam _self [Faraday::Adapter::Test::Stubs] the object that the method was called on
442
+ #
443
+ # source://faraday//lib/faraday/adapter/test.rb#70
444
+ def initialize(strict_mode: T.unsafe(nil)); end
445
+
446
+ # source://faraday//lib/faraday/adapter/test.rb#122
447
+ def delete(path, headers = T.unsafe(nil), &block); end
448
+
449
+ # @return [Boolean]
450
+ #
451
+ # source://faraday//lib/faraday/adapter/test.rb#79
452
+ def empty?; end
453
+
454
+ # source://faraday//lib/faraday/adapter/test.rb#102
455
+ def get(path, headers = T.unsafe(nil), &block); end
456
+
457
+ # source://faraday//lib/faraday/adapter/test.rb#106
458
+ def head(path, headers = T.unsafe(nil), &block); end
459
+
460
+ # @param env [Faraday::Env]
461
+ #
462
+ # source://faraday//lib/faraday/adapter/test.rb#84
463
+ def match(env); end
464
+
465
+ # source://faraday//lib/faraday/adapter/test.rb#126
466
+ def options(path, headers = T.unsafe(nil), &block); end
467
+
468
+ # source://faraday//lib/faraday/adapter/test.rb#118
469
+ def patch(path, body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
470
+
471
+ # source://faraday//lib/faraday/adapter/test.rb#110
472
+ def post(path, body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
473
+
474
+ # source://faraday//lib/faraday/adapter/test.rb#114
475
+ def put(path, body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
476
+
477
+ # Set strict_mode. If the value is true, this adapter tries to find matched requests strictly,
478
+ # which means that all of a path, parameters, and headers must be the same as an actual request.
479
+ #
480
+ # source://faraday//lib/faraday/adapter/test.rb#147
481
+ def strict_mode=(value); end
482
+
483
+ # Raises an error if any of the stubbed calls have not been made.
484
+ #
485
+ # source://faraday//lib/faraday/adapter/test.rb#131
486
+ def verify_stubbed_calls; end
487
+
488
+ protected
489
+
490
+ # @param stack [Hash]
491
+ # @param env [Faraday::Env]
492
+ # @return [Boolean]
493
+ #
494
+ # source://faraday//lib/faraday/adapter/test.rb#177
495
+ def matches?(stack, env); end
496
+
497
+ # source://faraday//lib/faraday/adapter/test.rb#158
498
+ def new_stub(request_method, path, headers = T.unsafe(nil), body = T.unsafe(nil), &block); end
499
+ end
500
+
501
+ # source://faraday//lib/faraday/adapter/test.rb#67
502
+ class Faraday::Adapter::Test::Stubs::NotFound < ::StandardError; end
503
+
504
+ # AdapterRegistry registers adapter class names so they can be looked up by a
505
+ # String or Symbol name.
506
+ #
507
+ # source://faraday//lib/faraday/adapter_registry.rb#8
508
+ class Faraday::AdapterRegistry
509
+ # @return [AdapterRegistry] a new instance of AdapterRegistry
510
+ #
511
+ # source://faraday//lib/faraday/adapter_registry.rb#9
512
+ def initialize; end
513
+
514
+ # source://faraday//lib/faraday/adapter_registry.rb#14
515
+ def get(name); end
516
+
517
+ # source://faraday//lib/faraday/adapter_registry.rb#23
518
+ def set(klass, name = T.unsafe(nil)); end
519
+ end
520
+
521
+ # Raised by Faraday::Response::RaiseError in case of a 400 response.
522
+ #
523
+ # source://faraday//lib/faraday/error.rb#96
524
+ class Faraday::BadRequestError < ::Faraday::ClientError; end
525
+
526
+ # source://faraday//lib/faraday.rb#34
527
+ Faraday::CONTENT_TYPE = T.let(T.unsafe(nil), String)
528
+
529
+ # Faraday client error class. Represents 4xx status responses.
530
+ #
531
+ # source://faraday//lib/faraday/error.rb#92
532
+ class Faraday::ClientError < ::Faraday::Error; end
533
+
534
+ # Raised by Faraday::Response::RaiseError in case of a 409 response.
535
+ #
536
+ # source://faraday//lib/faraday/error.rb#120
537
+ class Faraday::ConflictError < ::Faraday::ClientError; end
538
+
539
+ # Connection objects manage the default properties and the middleware
540
+ # stack for fulfilling an HTTP request.
541
+ #
542
+ # @example
543
+ #
544
+ # conn = Faraday::Connection.new 'http://httpbingo.org'
545
+ #
546
+ # # GET http://httpbingo.org/nigiri
547
+ # conn.get 'nigiri'
548
+ # # => #<Faraday::Response>
549
+ #
550
+ # source://faraday//lib/faraday/connection.rb#15
551
+ class Faraday::Connection
552
+ extend ::Forwardable
553
+
554
+ # Initializes a new Faraday::Connection.
555
+ #
556
+ # @option options
557
+ # @option options
558
+ # @option options
559
+ # @option options
560
+ # @option options
561
+ # @option options
562
+ # @option options
563
+ # @option options
564
+ # @option options
565
+ # @param url [URI, String] URI or String base URL to use as a prefix for all
566
+ # requests (optional).
567
+ # @param options [Hash, Faraday::ConnectionOptions]
568
+ # @return [Connection] a new instance of Connection
569
+ # @yield [self] after all setup has been done
570
+ #
571
+ # source://faraday//lib/faraday/connection.rb#63
572
+ def initialize(url = T.unsafe(nil), options = T.unsafe(nil)); end
573
+
574
+ # source://forwardable/1.3.3/forwardable.rb#231
575
+ def adapter(*args, **_arg1, &block); end
576
+
577
+ # source://forwardable/1.3.3/forwardable.rb#231
578
+ def app(*args, **_arg1, &block); end
579
+
580
+ # Build an absolute URL based on url_prefix.
581
+ #
582
+ # of the resulting url (default: nil).
583
+ #
584
+ # @param url [String, URI, nil]
585
+ # @param params [Faraday::Utils::ParamsHash] A Faraday::Utils::ParamsHash to
586
+ # replace the query values
587
+ # @return [URI]
588
+ #
589
+ # source://faraday//lib/faraday/connection.rb#470
590
+ def build_exclusive_url(url = T.unsafe(nil), params = T.unsafe(nil), params_encoder = T.unsafe(nil)); end
591
+
592
+ # Creates and configures the request object.
593
+ #
594
+ # @param method [Symbol]
595
+ # @return [Faraday::Request]
596
+ # @yield [Faraday::Request] if block given
597
+ #
598
+ # source://faraday//lib/faraday/connection.rb#453
599
+ def build_request(method); end
600
+
601
+ # Takes a relative url for a request and combines it with the defaults
602
+ # set on the connection instance.
603
+ #
604
+ # @example
605
+ # conn = Faraday::Connection.new { ... }
606
+ # conn.url_prefix = "https://httpbingo.org/api?token=abc"
607
+ # conn.scheme # => https
608
+ # conn.path_prefix # => "/api"
609
+ #
610
+ # conn.build_url("nigiri?page=2")
611
+ # # => https://httpbingo.org/api/nigiri?token=abc&page=2
612
+ #
613
+ # conn.build_url("nigiri", page: 2)
614
+ # # => https://httpbingo.org/api/nigiri?token=abc&page=2
615
+ # @param url [String, URI, nil]
616
+ # @param extra_params [Hash]
617
+ #
618
+ # source://faraday//lib/faraday/connection.rb#407
619
+ def build_url(url = T.unsafe(nil), extra_params = T.unsafe(nil)); end
620
+
621
+ # @return [Faraday::RackBuilder] Builder for this Connection.
622
+ #
623
+ # source://faraday//lib/faraday/connection.rb#31
624
+ def builder; end
625
+
626
+ # Closes the underlying resources and/or connections. In the case of
627
+ # persistent connections, this closes all currently open connections
628
+ # but does not prevent new connections from being made.
629
+ #
630
+ # source://faraday//lib/faraday/connection.rb#125
631
+ def close; end
632
+
633
+ # Check if the adapter is parallel-capable.
634
+ #
635
+ # @api private
636
+ # @return [Object, nil] a parallel manager or nil if yielded
637
+ # @yield if the adapter isn't parallel-capable, or if no adapter is set yet.
638
+ #
639
+ # source://faraday//lib/faraday/connection.rb#291
640
+ def default_parallel_manager; end
641
+
642
+ # Sets the default parallel manager for this connection.
643
+ #
644
+ # source://faraday//lib/faraday/connection.rb#40
645
+ def default_parallel_manager=(_arg0); end
646
+
647
+ # source://faraday//lib/faraday/connection.rb#199
648
+ def delete(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
649
+
650
+ # Creates a duplicate of this Faraday::Connection.
651
+ #
652
+ # @api private
653
+ # @return [Faraday::Connection]
654
+ #
655
+ # source://faraday//lib/faraday/connection.rb#490
656
+ def dup; end
657
+
658
+ # source://faraday//lib/faraday/connection.rb#533
659
+ def find_default_proxy; end
660
+
661
+ # source://faraday//lib/faraday/connection.rb#199
662
+ def get(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
663
+
664
+ # source://faraday//lib/faraday/connection.rb#199
665
+ def head(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
666
+
667
+ # @return [Hash] unencoded HTTP header key/value pairs.
668
+ #
669
+ # source://faraday//lib/faraday/connection.rb#24
670
+ def headers; end
671
+
672
+ # Sets the Hash of unencoded HTTP header key/value pairs.
673
+ #
674
+ # @param hash [Hash]
675
+ #
676
+ # source://faraday//lib/faraday/connection.rb#114
677
+ def headers=(hash); end
678
+
679
+ # source://forwardable/1.3.3/forwardable.rb#231
680
+ def host(*args, **_arg1, &block); end
681
+
682
+ # source://forwardable/1.3.3/forwardable.rb#231
683
+ def host=(*args, **_arg1, &block); end
684
+
685
+ # Sets up the parallel manager to make a set of requests.
686
+ #
687
+ # @param manager [Object] The parallel manager that this Connection's
688
+ # Adapter uses.
689
+ # @return [void]
690
+ # @yield a block to execute multiple requests.
691
+ #
692
+ # source://faraday//lib/faraday/connection.rb#317
693
+ def in_parallel(manager = T.unsafe(nil)); end
694
+
695
+ # Determine if this Faraday::Connection can make parallel requests.
696
+ #
697
+ # @return [Boolean]
698
+ #
699
+ # source://faraday//lib/faraday/connection.rb#306
700
+ def in_parallel?; end
701
+
702
+ # source://faraday//lib/faraday/connection.rb#96
703
+ def initialize_proxy(url, options); end
704
+
705
+ # @example
706
+ # conn.options '/items/1'
707
+ # @overload options
708
+ # @overload options
709
+ # @return [Faraday::Response]
710
+ # @yield [Faraday::Request] for further request customizations
711
+ #
712
+ # source://faraday//lib/faraday/connection.rb#222
713
+ def options(*args); end
714
+
715
+ # @return [Object] the parallel manager for this Connection.
716
+ #
717
+ # source://faraday//lib/faraday/connection.rb#37
718
+ def parallel_manager; end
719
+
720
+ # @return [Hash] URI query unencoded key/value pairs.
721
+ #
722
+ # source://faraday//lib/faraday/connection.rb#21
723
+ def params; end
724
+
725
+ # Sets the Hash of URI query unencoded key/value pairs.
726
+ #
727
+ # @param hash [Hash]
728
+ #
729
+ # source://faraday//lib/faraday/connection.rb#108
730
+ def params=(hash); end
731
+
732
+ # source://faraday//lib/faraday/connection.rb#279
733
+ def patch(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
734
+
735
+ # source://forwardable/1.3.3/forwardable.rb#231
736
+ def path_prefix(*args, **_arg1, &block); end
737
+
738
+ # Sets the path prefix and ensures that it always has a leading
739
+ # slash.
740
+ #
741
+ # @param value [String]
742
+ # @return [String] the new path prefix
743
+ #
744
+ # source://faraday//lib/faraday/connection.rb#382
745
+ def path_prefix=(value); end
746
+
747
+ # source://forwardable/1.3.3/forwardable.rb#231
748
+ def port(*args, **_arg1, &block); end
749
+
750
+ # source://forwardable/1.3.3/forwardable.rb#231
751
+ def port=(*args, **_arg1, &block); end
752
+
753
+ # source://faraday//lib/faraday/connection.rb#279
754
+ def post(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
755
+
756
+ # @return [Hash] proxy options.
757
+ #
758
+ # source://faraday//lib/faraday/connection.rb#43
759
+ def proxy; end
760
+
761
+ # Sets the Hash proxy options.
762
+ #
763
+ # @param new_value [Object]
764
+ #
765
+ # source://faraday//lib/faraday/connection.rb#333
766
+ def proxy=(new_value); end
767
+
768
+ # source://faraday//lib/faraday/connection.rb#541
769
+ def proxy_for_request(url); end
770
+
771
+ # source://faraday//lib/faraday/connection.rb#513
772
+ def proxy_from_env(url); end
773
+
774
+ # source://faraday//lib/faraday/connection.rb#279
775
+ def put(url = T.unsafe(nil), body = T.unsafe(nil), headers = T.unsafe(nil), &block); end
776
+
777
+ # source://forwardable/1.3.3/forwardable.rb#231
778
+ def request(*args, **_arg1, &block); end
779
+
780
+ # source://forwardable/1.3.3/forwardable.rb#231
781
+ def response(*args, **_arg1, &block); end
782
+
783
+ # Builds and runs the Faraday::Request.
784
+ #
785
+ # @param method [Symbol] HTTP method.
786
+ # @param url [String, URI, nil] String or URI to access.
787
+ # @param body [String, nil] The request body that will eventually be converted to
788
+ # a string.
789
+ # @param headers [Hash, nil] unencoded HTTP header key/value pairs.
790
+ # @return [Faraday::Response]
791
+ #
792
+ # source://faraday//lib/faraday/connection.rb#431
793
+ def run_request(method, url, body, headers); end
794
+
795
+ # source://forwardable/1.3.3/forwardable.rb#231
796
+ def scheme(*args, **_arg1, &block); end
797
+
798
+ # source://forwardable/1.3.3/forwardable.rb#231
799
+ def scheme=(*args, **_arg1, &block); end
800
+
801
+ # source://faraday//lib/faraday/connection.rb#371
802
+ def set_basic_auth(user, password); end
803
+
804
+ # @return [Hash] SSL options.
805
+ #
806
+ # source://faraday//lib/faraday/connection.rb#34
807
+ def ssl; end
808
+
809
+ # @return [Boolean]
810
+ #
811
+ # source://faraday//lib/faraday/connection.rb#551
812
+ def support_parallel?(adapter); end
813
+
814
+ # source://faraday//lib/faraday/connection.rb#199
815
+ def trace(url = T.unsafe(nil), params = T.unsafe(nil), headers = T.unsafe(nil)); end
816
+
817
+ # @return [String] a URI with the prefix used for all requests from this
818
+ # Connection. This includes a default host name, scheme, port, and path.
819
+ #
820
+ # source://faraday//lib/faraday/connection.rb#28
821
+ def url_prefix; end
822
+
823
+ # Parses the given URL with URI and stores the individual
824
+ # components in this connection. These components serve as defaults for
825
+ # requests made by this connection.
826
+ #
827
+ # @example
828
+ #
829
+ # conn = Faraday::Connection.new { ... }
830
+ # conn.url_prefix = "https://httpbingo.org/api"
831
+ # conn.scheme # => https
832
+ # conn.path_prefix # => "/api"
833
+ #
834
+ # conn.get("nigiri?page=2") # accesses https://httpbingo.org/api/nigiri
835
+ # @param url [String, URI]
836
+ # @param encoder [Object]
837
+ #
838
+ # source://faraday//lib/faraday/connection.rb#356
839
+ def url_prefix=(url, encoder = T.unsafe(nil)); end
840
+
841
+ # source://forwardable/1.3.3/forwardable.rb#231
842
+ def use(*args, **_arg1, &block); end
843
+
844
+ # Yields username and password extracted from a URI if they both exist.
845
+ #
846
+ # @api private
847
+ # @param uri [URI]
848
+ # @return [void]
849
+ # @yield [username, password] any username and password
850
+ # @yieldparam username [String] any username from URI
851
+ # @yieldparam password [String] any password from URI
852
+ #
853
+ # source://faraday//lib/faraday/connection.rb#507
854
+ def with_uri_credentials(uri); end
855
+ end
856
+
857
+ # A Set of allowed HTTP verbs.
858
+ #
859
+ # source://faraday//lib/faraday/connection.rb#17
860
+ Faraday::Connection::METHODS = T.let(T.unsafe(nil), Set)
861
+
862
+ # source://faraday//lib/faraday/connection.rb#18
863
+ Faraday::Connection::USER_AGENT = T.let(T.unsafe(nil), String)
864
+
865
+ # A unified error for failed connections.
866
+ #
867
+ # source://faraday//lib/faraday/error.rb#151
868
+ class Faraday::ConnectionFailed < ::Faraday::Error; end
869
+
870
+ # ConnectionOptions contains the configurable properties for a Faraday
871
+ # connection object.
872
+ #
873
+ # source://faraday//lib/faraday/options/connection_options.rb#8
874
+ class Faraday::ConnectionOptions < ::Faraday::Options
875
+ def builder; end
876
+ def builder=(_); end
877
+
878
+ # source://faraday//lib/faraday/options.rb#178
879
+ def builder_class; end
880
+
881
+ def builder_class=(_); end
882
+ def headers; end
883
+ def headers=(_); end
884
+
885
+ # source://faraday//lib/faraday/options/connection_options.rb#19
886
+ def new_builder(block); end
887
+
888
+ def parallel_manager; end
889
+ def parallel_manager=(_); end
890
+ def params; end
891
+ def params=(_); end
892
+ def proxy; end
893
+ def proxy=(_); end
894
+
895
+ # source://faraday//lib/faraday/options.rb#178
896
+ def request; end
897
+
898
+ def request=(_); end
899
+
900
+ # source://faraday//lib/faraday/options.rb#178
901
+ def ssl; end
902
+
903
+ def ssl=(_); end
904
+ def url; end
905
+ def url=(_); end
906
+
907
+ class << self
908
+ def [](*_arg0); end
909
+ def inspect; end
910
+ def keyword_init?; end
911
+ def members; end
912
+ def new(*_arg0); end
913
+ end
914
+ end
915
+
916
+ # Sub-module for decoding query-string into parameters.
917
+ #
918
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#81
919
+ module Faraday::DecodeMethods
920
+ # @param query [nil, String]
921
+ # @raise [TypeError] if the nesting is incorrect
922
+ # @return [Array<Array, String>] the decoded params
923
+ #
924
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#87
925
+ def decode(query); end
926
+
927
+ protected
928
+
929
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#144
930
+ def add_to_context(is_array, context, value, subkey); end
931
+
932
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#107
933
+ def decode_pair(key, value, context); end
934
+
935
+ # Internal: convert a nested hash with purely numeric keys into an array.
936
+ # FIXME: this is not compatible with Rack::Utils.parse_nested_query
937
+ #
938
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#151
939
+ def dehash(hash, depth); end
940
+
941
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#139
942
+ def match_context(context, subkey); end
943
+
944
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#129
945
+ def new_context(subkey, is_array, context); end
946
+
947
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#119
948
+ def prepare_context(context, subkey, is_array, last_subkey); end
949
+ end
950
+
951
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#105
952
+ Faraday::DecodeMethods::SUBKEYS_REGEX = T.let(T.unsafe(nil), Regexp)
953
+
954
+ # Sub-module for encoding parameters into query-string.
955
+ #
956
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#5
957
+ module Faraday::EncodeMethods
958
+ # @param params [nil, Array, #to_hash] parameters to be encoded
959
+ # @raise [TypeError] if params can not be converted to a Hash
960
+ # @return [String] the encoded params
961
+ #
962
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#11
963
+ def encode(params); end
964
+
965
+ protected
966
+
967
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#64
968
+ def encode_array(parent, value); end
969
+
970
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#53
971
+ def encode_hash(parent, value); end
972
+
973
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#40
974
+ def encode_pair(parent, value); end
975
+ end
976
+
977
+ # source://faraday//lib/faraday/options/env.rb#57
978
+ class Faraday::Env < ::Faraday::Options
979
+ extend ::Forwardable
980
+
981
+ # source://faraday//lib/faraday/options/env.rb#89
982
+ def [](key); end
983
+
984
+ # source://faraday//lib/faraday/options/env.rb#101
985
+ def []=(key, value); end
986
+
987
+ # string.
988
+ #
989
+ # @return [String] The request body that will eventually be converted to a
990
+ #
991
+ # source://faraday//lib/faraday/options/env.rb#118
992
+ def body; end
993
+
994
+ # string.
995
+ #
996
+ # @return [String] The request body that will eventually be converted to a
997
+ #
998
+ # source://faraday//lib/faraday/options/env.rb#122
999
+ def body=(value); end
1000
+
1001
+ # source://faraday//lib/faraday/options/env.rb#138
1002
+ def clear_body; end
1003
+
1004
+ # source://faraday//lib/faraday/options/env.rb#114
1005
+ def current_body; end
1006
+
1007
+ # source://faraday//lib/faraday/options/env.rb#184
1008
+ def custom_members; end
1009
+
1010
+ # source://faraday//lib/faraday/options/env.rb#190
1011
+ def in_member_set?(key); end
1012
+
1013
+ # source://faraday//lib/faraday/options/env.rb#154
1014
+ def inspect; end
1015
+
1016
+ # @return [Symbol] HTTP method (`:get`, `:post`)
1017
+ def method; end
1018
+
1019
+ # @return [Symbol] HTTP method (`:get`, `:post`)
1020
+ def method=(_); end
1021
+
1022
+ # source://faraday//lib/faraday/options/env.rb#133
1023
+ def needs_body?; end
1024
+
1025
+ # source://faraday//lib/faraday/options/env.rb#150
1026
+ def parallel?; end
1027
+
1028
+ # @return [Object] sent if the connection is in parallel mode
1029
+ def parallel_manager; end
1030
+
1031
+ # @return [Object] sent if the connection is in parallel mode
1032
+ def parallel_manager=(_); end
1033
+
1034
+ # @return [Hash]
1035
+ def params; end
1036
+
1037
+ # @return [Hash]
1038
+ def params=(_); end
1039
+
1040
+ # source://forwardable/1.3.3/forwardable.rb#231
1041
+ def params_encoder(*args, **_arg1, &block); end
1042
+
1043
+ # source://faraday//lib/faraday/options/env.rb#145
1044
+ def parse_body?; end
1045
+
1046
+ # @return [String]
1047
+ def reason_phrase; end
1048
+
1049
+ # @return [String]
1050
+ def reason_phrase=(_); end
1051
+
1052
+ # Options for configuring the request.
1053
+ #
1054
+ # - `:timeout` - time limit for the entire request (Integer in
1055
+ # seconds)
1056
+ # - `:open_timeout` - time limit for just the connection phase (e.g.
1057
+ # handshake) (Integer in seconds)
1058
+ # - `:read_timeout` - time limit for the first response byte received from
1059
+ # the server (Integer in seconds)
1060
+ # - `:write_timeout` - time limit for the client to send the request to the
1061
+ # server (Integer in seconds)
1062
+ # - `:on_data` - Proc for streaming
1063
+ # - `:proxy` - Hash of proxy options
1064
+ # - `:uri` - Proxy server URI
1065
+ # - `:user` - Proxy server username
1066
+ # - `:password` - Proxy server password
1067
+ #
1068
+ # @return [Hash] options for configuring the request.
1069
+ def request; end
1070
+
1071
+ # Options for configuring the request.
1072
+ #
1073
+ # - `:timeout` - time limit for the entire request (Integer in
1074
+ # seconds)
1075
+ # - `:open_timeout` - time limit for just the connection phase (e.g.
1076
+ # handshake) (Integer in seconds)
1077
+ # - `:read_timeout` - time limit for the first response byte received from
1078
+ # the server (Integer in seconds)
1079
+ # - `:write_timeout` - time limit for the client to send the request to the
1080
+ # server (Integer in seconds)
1081
+ # - `:on_data` - Proc for streaming
1082
+ # - `:proxy` - Hash of proxy options
1083
+ # - `:uri` - Proxy server URI
1084
+ # - `:user` - Proxy server username
1085
+ # - `:password` - Proxy server password
1086
+ #
1087
+ # @return [Hash] options for configuring the request.
1088
+ def request=(_); end
1089
+
1090
+ def request_body; end
1091
+ def request_body=(_); end
1092
+
1093
+ # @return [Hash] HTTP Headers to be sent to the server.
1094
+ def request_headers; end
1095
+
1096
+ # @return [Hash] HTTP Headers to be sent to the server.
1097
+ def request_headers=(_); end
1098
+
1099
+ # @return [Response]
1100
+ def response; end
1101
+
1102
+ # @return [Response]
1103
+ def response=(_); end
1104
+
1105
+ def response_body; end
1106
+ def response_body=(_); end
1107
+
1108
+ # @return [Hash] HTTP headers from the server
1109
+ def response_headers; end
1110
+
1111
+ # @return [Hash] HTTP headers from the server
1112
+ def response_headers=(_); end
1113
+
1114
+ # @return [Hash] options for configuring SSL requests
1115
+ def ssl; end
1116
+
1117
+ # @return [Hash] options for configuring SSL requests
1118
+ def ssl=(_); end
1119
+
1120
+ # @return [Integer] HTTP response status code
1121
+ def status; end
1122
+
1123
+ # @return [Integer] HTTP response status code
1124
+ def status=(_); end
1125
+
1126
+ # source://faraday//lib/faraday/options/env.rb#169
1127
+ def stream_response(&block); end
1128
+
1129
+ # source://faraday//lib/faraday/options/env.rb#165
1130
+ def stream_response?; end
1131
+
1132
+ # source://faraday//lib/faraday/options/env.rb#127
1133
+ def success?; end
1134
+
1135
+ # @return [URI] URI instance for the current request.
1136
+ def url; end
1137
+
1138
+ # @return [URI] URI instance for the current request.
1139
+ def url=(_); end
1140
+
1141
+ class << self
1142
+ def [](*_arg0); end
1143
+
1144
+ # source://faraday//lib/faraday/options/env.rb#80
1145
+ def from(value); end
1146
+
1147
+ def inspect; end
1148
+ def keyword_init?; end
1149
+
1150
+ # source://faraday//lib/faraday/options/env.rb#200
1151
+ def member_set; end
1152
+
1153
+ def members; end
1154
+ def new(*_arg0); end
1155
+ end
1156
+ end
1157
+
1158
+ # source://faraday//lib/faraday/options/env.rb#61
1159
+ Faraday::Env::ContentLength = T.let(T.unsafe(nil), String)
1160
+
1161
+ # source://faraday//lib/faraday/options/env.rb#67
1162
+ Faraday::Env::MethodsWithBodies = T.let(T.unsafe(nil), Set)
1163
+
1164
+ # source://faraday//lib/faraday/options/env.rb#62
1165
+ Faraday::Env::StatusesWithoutBody = T.let(T.unsafe(nil), Set)
1166
+
1167
+ # source://faraday//lib/faraday/options/env.rb#63
1168
+ Faraday::Env::SuccessfulStatuses = T.let(T.unsafe(nil), Range)
1169
+
1170
+ # Faraday error base class.
1171
+ #
1172
+ # source://faraday//lib/faraday/error.rb#6
1173
+ class Faraday::Error < ::StandardError
1174
+ # @return [Error] a new instance of Error
1175
+ #
1176
+ # source://faraday//lib/faraday/error.rb#9
1177
+ def initialize(exc = T.unsafe(nil), response = T.unsafe(nil)); end
1178
+
1179
+ # source://faraday//lib/faraday/error.rb#15
1180
+ def backtrace; end
1181
+
1182
+ # source://faraday//lib/faraday/error.rb#23
1183
+ def inspect; end
1184
+
1185
+ # Returns the value of attribute response.
1186
+ #
1187
+ # source://faraday//lib/faraday/error.rb#7
1188
+ def response; end
1189
+
1190
+ # source://faraday//lib/faraday/error.rb#43
1191
+ def response_body; end
1192
+
1193
+ # source://faraday//lib/faraday/error.rb#37
1194
+ def response_headers; end
1195
+
1196
+ # source://faraday//lib/faraday/error.rb#31
1197
+ def response_status; end
1198
+
1199
+ # Returns the value of attribute wrapped_exception.
1200
+ #
1201
+ # source://faraday//lib/faraday/error.rb#7
1202
+ def wrapped_exception; end
1203
+
1204
+ protected
1205
+
1206
+ # Pulls out potential parent exception and response hash.
1207
+ #
1208
+ # source://faraday//lib/faraday/error.rb#81
1209
+ def exc_msg_and_response(exc, response = T.unsafe(nil)); end
1210
+
1211
+ # Pulls out potential parent exception and response hash, storing them in
1212
+ # instance variables.
1213
+ # exc - Either an Exception, a string message, or a response hash.
1214
+ # response - Hash
1215
+ # :status - Optional integer HTTP response status
1216
+ # :headers - String key/value hash of HTTP response header
1217
+ # values.
1218
+ # :body - Optional string HTTP response body.
1219
+ # :request - Hash
1220
+ # :method - Symbol with the request HTTP method.
1221
+ # :url - URI object with the url requested.
1222
+ # :url_path - String with the url path requested.
1223
+ # :params - String key/value hash of query params
1224
+ # present in the request.
1225
+ # :headers - String key/value hash of HTTP request
1226
+ # header values.
1227
+ # :body - String HTTP request body.
1228
+ #
1229
+ # If a subclass has to call this, then it should pass a string message
1230
+ # to `super`. See NilStatusError.
1231
+ #
1232
+ # source://faraday//lib/faraday/error.rb#71
1233
+ def exc_msg_and_response!(exc, response = T.unsafe(nil)); end
1234
+ end
1235
+
1236
+ # FlatParamsEncoder manages URI params as a flat hash. Any Array values repeat
1237
+ # the parameter multiple times.
1238
+ #
1239
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#6
1240
+ module Faraday::FlatParamsEncoder
1241
+ class << self
1242
+ # Decode converts the given URI querystring into a hash.
1243
+ #
1244
+ # @example
1245
+ #
1246
+ # decode('a=one&a=two&a=three&b=true&c=C')
1247
+ # # => {"a"=>["one", "two", "three"], "b"=>"true", "c"=>"C"}
1248
+ # @param query [String] query arguments to parse.
1249
+ # @return [Hash] parsed keys and value strings from the querystring.
1250
+ #
1251
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#74
1252
+ def decode(query); end
1253
+
1254
+ # Encode converts the given param into a URI querystring. Keys and values
1255
+ # will converted to strings and appropriately escaped for the URI.
1256
+ #
1257
+ # @example
1258
+ #
1259
+ # encode({a: %w[one two three], b: true, c: "C"})
1260
+ # # => 'a=one&a=two&a=three&b=true&c=C'
1261
+ # @param params [Hash] query arguments to convert.
1262
+ # @return [String] the URI querystring (without the leading '?')
1263
+ #
1264
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#23
1265
+ def encode(params); end
1266
+
1267
+ # source://forwardable/1.3.3/forwardable.rb#231
1268
+ def escape(*args, **_arg1, &block); end
1269
+
1270
+ # Returns the value of attribute sort_params.
1271
+ #
1272
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#99
1273
+ def sort_params; end
1274
+
1275
+ # Sets the attribute sort_params
1276
+ #
1277
+ # @param value the value to set the attribute sort_params to.
1278
+ #
1279
+ # source://faraday//lib/faraday/encoders/flat_params_encoder.rb#99
1280
+ def sort_params=(_arg0); end
1281
+
1282
+ # source://forwardable/1.3.3/forwardable.rb#231
1283
+ def unescape(*args, **_arg1, &block); end
1284
+ end
1285
+ end
1286
+
1287
+ # Raised by Faraday::Response::RaiseError in case of a 403 response.
1288
+ #
1289
+ # source://faraday//lib/faraday/error.rb#104
1290
+ class Faraday::ForbiddenError < ::Faraday::ClientError; end
1291
+
1292
+ # source://faraday//lib/faraday/logging/formatter.rb#6
1293
+ module Faraday::Logging; end
1294
+
1295
+ # Serves as an integration point to customize logging
1296
+ #
1297
+ # source://faraday//lib/faraday/logging/formatter.rb#8
1298
+ class Faraday::Logging::Formatter
1299
+ extend ::Forwardable
1300
+
1301
+ # @return [Formatter] a new instance of Formatter
1302
+ #
1303
+ # source://faraday//lib/faraday/logging/formatter.rb#14
1304
+ def initialize(logger:, options:); end
1305
+
1306
+ # source://forwardable/1.3.3/forwardable.rb#231
1307
+ def debug(*args, **_arg1, &block); end
1308
+
1309
+ # source://forwardable/1.3.3/forwardable.rb#231
1310
+ def error(*args, **_arg1, &block); end
1311
+
1312
+ # source://faraday//lib/faraday/logging/formatter.rb#41
1313
+ def exception(exc); end
1314
+
1315
+ # source://forwardable/1.3.3/forwardable.rb#231
1316
+ def fatal(*args, **_arg1, &block); end
1317
+
1318
+ # source://faraday//lib/faraday/logging/formatter.rb#52
1319
+ def filter(filter_word, filter_replacement); end
1320
+
1321
+ # source://forwardable/1.3.3/forwardable.rb#231
1322
+ def info(*args, **_arg1, &block); end
1323
+
1324
+ # source://faraday//lib/faraday/logging/formatter.rb#25
1325
+ def request(env); end
1326
+
1327
+ # source://faraday//lib/faraday/logging/formatter.rb#34
1328
+ def response(env); end
1329
+
1330
+ # source://forwardable/1.3.3/forwardable.rb#231
1331
+ def warn(*args, **_arg1, &block); end
1332
+
1333
+ private
1334
+
1335
+ # source://faraday//lib/faraday/logging/formatter.rb#98
1336
+ def apply_filters(output); end
1337
+
1338
+ # source://faraday//lib/faraday/logging/formatter.rb#64
1339
+ def dump_body(body); end
1340
+
1341
+ # source://faraday//lib/faraday/logging/formatter.rb#58
1342
+ def dump_headers(headers); end
1343
+
1344
+ # source://faraday//lib/faraday/logging/formatter.rb#113
1345
+ def log_body(type, body); end
1346
+
1347
+ # @return [Boolean]
1348
+ #
1349
+ # source://faraday//lib/faraday/logging/formatter.rb#85
1350
+ def log_body?(type); end
1351
+
1352
+ # @return [Boolean]
1353
+ #
1354
+ # source://faraday//lib/faraday/logging/formatter.rb#94
1355
+ def log_errors?; end
1356
+
1357
+ # source://faraday//lib/faraday/logging/formatter.rb#109
1358
+ def log_headers(type, headers); end
1359
+
1360
+ # @return [Boolean]
1361
+ #
1362
+ # source://faraday//lib/faraday/logging/formatter.rb#76
1363
+ def log_headers?(type); end
1364
+
1365
+ # source://faraday//lib/faraday/logging/formatter.rb#105
1366
+ def log_level; end
1367
+
1368
+ # source://faraday//lib/faraday/logging/formatter.rb#72
1369
+ def pretty_inspect(body); end
1370
+ end
1371
+
1372
+ # source://faraday//lib/faraday/logging/formatter.rb#11
1373
+ Faraday::Logging::Formatter::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
1374
+
1375
+ # source://faraday//lib/faraday/methods.rb#5
1376
+ Faraday::METHODS_WITH_BODY = T.let(T.unsafe(nil), Array)
1377
+
1378
+ # source://faraday//lib/faraday/methods.rb#4
1379
+ Faraday::METHODS_WITH_QUERY = T.let(T.unsafe(nil), Array)
1380
+
1381
+ # Middleware is the basic base class of any Faraday middleware.
1382
+ #
1383
+ # source://faraday//lib/faraday/middleware.rb#5
1384
+ class Faraday::Middleware
1385
+ extend ::Faraday::MiddlewareRegistry
1386
+
1387
+ # @return [Middleware] a new instance of Middleware
1388
+ #
1389
+ # source://faraday//lib/faraday/middleware.rb#10
1390
+ def initialize(app = T.unsafe(nil), options = T.unsafe(nil)); end
1391
+
1392
+ # Returns the value of attribute app.
1393
+ #
1394
+ # source://faraday//lib/faraday/middleware.rb#8
1395
+ def app; end
1396
+
1397
+ # source://faraday//lib/faraday/middleware.rb#15
1398
+ def call(env); end
1399
+
1400
+ # source://faraday//lib/faraday/middleware.rb#25
1401
+ def close; end
1402
+
1403
+ # Returns the value of attribute options.
1404
+ #
1405
+ # source://faraday//lib/faraday/middleware.rb#8
1406
+ def options; end
1407
+ end
1408
+
1409
+ # Adds the ability for other modules to register and lookup
1410
+ # middleware classes.
1411
+ #
1412
+ # source://faraday//lib/faraday/middleware_registry.rb#8
1413
+ module Faraday::MiddlewareRegistry
1414
+ # Lookup middleware class with a registered Symbol shortcut.
1415
+ #
1416
+ # @example
1417
+ #
1418
+ # module Faraday
1419
+ # class Whatever < Middleware
1420
+ # register_middleware(foo: Whatever)
1421
+ # end
1422
+ # end
1423
+ #
1424
+ # Faraday::Middleware.lookup_middleware(:foo)
1425
+ # # => Faraday::Whatever
1426
+ # @param key [Symbol] key for the registered middleware.
1427
+ # @raise [Faraday::Error] if given key is not registered
1428
+ # @return [Class] a middleware Class.
1429
+ #
1430
+ # source://faraday//lib/faraday/middleware_registry.rb#55
1431
+ def lookup_middleware(key); end
1432
+
1433
+ # Register middleware class(es) on the current module.
1434
+ #
1435
+ # @example Lookup by a constant
1436
+ #
1437
+ # module Faraday
1438
+ # class Whatever < Middleware
1439
+ # # Middleware looked up by :foo returns Faraday::Whatever::Foo.
1440
+ # register_middleware(foo: Whatever)
1441
+ # end
1442
+ # end
1443
+ # @param mappings [Hash] Middleware mappings from a lookup symbol to a middleware class.
1444
+ # @return [void]
1445
+ #
1446
+ # source://faraday//lib/faraday/middleware_registry.rb#26
1447
+ def register_middleware(**mappings); end
1448
+
1449
+ # source://faraday//lib/faraday/middleware_registry.rb#9
1450
+ def registered_middleware; end
1451
+
1452
+ # Unregister a previously registered middleware class.
1453
+ #
1454
+ # @param key [Symbol] key for the registered middleware.
1455
+ #
1456
+ # source://faraday//lib/faraday/middleware_registry.rb#35
1457
+ def unregister_middleware(key); end
1458
+
1459
+ private
1460
+
1461
+ # source://faraday//lib/faraday/middleware_registry.rb#67
1462
+ def load_middleware(key); end
1463
+
1464
+ # source://faraday//lib/faraday/middleware_registry.rb#62
1465
+ def middleware_mutex(&block); end
1466
+ end
1467
+
1468
+ # This is the default encoder for Faraday requests.
1469
+ # Using this encoder, parameters will be encoded respecting their structure,
1470
+ # so you can send objects such as Arrays or Hashes as parameters
1471
+ # for your requests.
1472
+ #
1473
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#168
1474
+ module Faraday::NestedParamsEncoder
1475
+ extend ::Faraday::EncodeMethods
1476
+ extend ::Faraday::DecodeMethods
1477
+
1478
+ class << self
1479
+ # Returns the value of attribute array_indices.
1480
+ #
1481
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170
1482
+ def array_indices; end
1483
+
1484
+ # Sets the attribute array_indices
1485
+ #
1486
+ # @param value the value to set the attribute array_indices to.
1487
+ #
1488
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170
1489
+ def array_indices=(_arg0); end
1490
+
1491
+ # source://forwardable/1.3.3/forwardable.rb#231
1492
+ def escape(*args, **_arg1, &block); end
1493
+
1494
+ # Returns the value of attribute sort_params.
1495
+ #
1496
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170
1497
+ def sort_params; end
1498
+
1499
+ # Sets the attribute sort_params
1500
+ #
1501
+ # @param value the value to set the attribute sort_params to.
1502
+ #
1503
+ # source://faraday//lib/faraday/encoders/nested_params_encoder.rb#170
1504
+ def sort_params=(_arg0); end
1505
+
1506
+ # source://forwardable/1.3.3/forwardable.rb#231
1507
+ def unescape(*args, **_arg1, &block); end
1508
+ end
1509
+ end
1510
+
1511
+ # Raised by Faraday::Response::RaiseError in case of a nil status in response.
1512
+ #
1513
+ # source://faraday//lib/faraday/error.rb#143
1514
+ class Faraday::NilStatusError < ::Faraday::ServerError
1515
+ # @return [NilStatusError] a new instance of NilStatusError
1516
+ #
1517
+ # source://faraday//lib/faraday/error.rb#144
1518
+ def initialize(exc, response = T.unsafe(nil)); end
1519
+ end
1520
+
1521
+ # Subclasses Struct with some special helpers for converting from a Hash to
1522
+ # a Struct.
1523
+ #
1524
+ # source://faraday//lib/faraday/options.rb#6
1525
+ class Faraday::Options < ::Struct
1526
+ # source://faraday//lib/faraday/options.rb#186
1527
+ def [](key); end
1528
+
1529
+ # Public
1530
+ #
1531
+ # source://faraday//lib/faraday/options.rb#46
1532
+ def clear; end
1533
+
1534
+ # Public
1535
+ #
1536
+ # source://faraday//lib/faraday/options.rb#71
1537
+ def deep_dup; end
1538
+
1539
+ # Public
1540
+ #
1541
+ # source://faraday//lib/faraday/options.rb#39
1542
+ def delete(key); end
1543
+
1544
+ # Public
1545
+ #
1546
+ # source://faraday//lib/faraday/options.rb#13
1547
+ def each; end
1548
+
1549
+ # Public
1550
+ #
1551
+ # source://faraday//lib/faraday/options.rb#106
1552
+ def each_key(&block); end
1553
+
1554
+ # Public
1555
+ #
1556
+ # source://faraday//lib/faraday/options.rb#120
1557
+ def each_value(&block); end
1558
+
1559
+ # Public
1560
+ #
1561
+ # @return [Boolean]
1562
+ #
1563
+ # source://faraday//lib/faraday/options.rb#101
1564
+ def empty?; end
1565
+
1566
+ # Public
1567
+ #
1568
+ # source://faraday//lib/faraday/options.rb#76
1569
+ def fetch(key, *args); end
1570
+
1571
+ # Public
1572
+ #
1573
+ # @return [Boolean]
1574
+ #
1575
+ # source://faraday//lib/faraday/options.rb#113
1576
+ def has_key?(key); end
1577
+
1578
+ # Public
1579
+ #
1580
+ # @return [Boolean]
1581
+ #
1582
+ # source://faraday//lib/faraday/options.rb#127
1583
+ def has_value?(value); end
1584
+
1585
+ # Internal
1586
+ #
1587
+ # source://faraday//lib/faraday/options.rb#144
1588
+ def inspect; end
1589
+
1590
+ # Public
1591
+ #
1592
+ # @return [Boolean]
1593
+ #
1594
+ # source://faraday//lib/faraday/options.rb#113
1595
+ def key?(key); end
1596
+
1597
+ # Public
1598
+ #
1599
+ # source://faraday//lib/faraday/options.rb#96
1600
+ def keys; end
1601
+
1602
+ # Public
1603
+ #
1604
+ # source://faraday//lib/faraday/options.rb#66
1605
+ def merge(other); end
1606
+
1607
+ # Public
1608
+ #
1609
+ # source://faraday//lib/faraday/options.rb#51
1610
+ def merge!(other); end
1611
+
1612
+ # source://faraday//lib/faraday/options.rb#195
1613
+ def symbolized_key_set; end
1614
+
1615
+ # Public
1616
+ #
1617
+ # source://faraday//lib/faraday/options.rb#134
1618
+ def to_hash; end
1619
+
1620
+ # Public
1621
+ #
1622
+ # source://faraday//lib/faraday/options.rb#22
1623
+ def update(obj); end
1624
+
1625
+ # Public
1626
+ #
1627
+ # @return [Boolean]
1628
+ #
1629
+ # source://faraday//lib/faraday/options.rb#127
1630
+ def value?(value); end
1631
+
1632
+ # Public
1633
+ #
1634
+ # source://faraday//lib/faraday/options.rb#91
1635
+ def values_at(*keys); end
1636
+
1637
+ class << self
1638
+ # Internal
1639
+ #
1640
+ # source://faraday//lib/faraday/options.rb#166
1641
+ def attribute_options; end
1642
+
1643
+ # source://faraday//lib/faraday/options.rb#205
1644
+ def fetch_error_class; end
1645
+
1646
+ # Public
1647
+ #
1648
+ # source://faraday//lib/faraday/options.rb#8
1649
+ def from(value); end
1650
+
1651
+ # @private
1652
+ #
1653
+ # source://faraday//lib/faraday/options.rb#199
1654
+ def inherited(subclass); end
1655
+
1656
+ # source://faraday//lib/faraday/options.rb#170
1657
+ def memoized(key, &block); end
1658
+
1659
+ # source://faraday//lib/faraday/options.rb#182
1660
+ def memoized_attributes; end
1661
+
1662
+ # Internal
1663
+ #
1664
+ # source://faraday//lib/faraday/options.rb#156
1665
+ def options(mapping); end
1666
+
1667
+ # Internal
1668
+ #
1669
+ # source://faraday//lib/faraday/options.rb#161
1670
+ def options_for(key); end
1671
+ end
1672
+ end
1673
+
1674
+ # Raised by middlewares that parse the response, like the JSON response middleware.
1675
+ #
1676
+ # source://faraday//lib/faraday/error.rb#159
1677
+ class Faraday::ParsingError < ::Faraday::Error; end
1678
+
1679
+ # Raised by Faraday::Response::RaiseError in case of a 407 response.
1680
+ #
1681
+ # source://faraday//lib/faraday/error.rb#112
1682
+ class Faraday::ProxyAuthError < ::Faraday::ClientError; end
1683
+
1684
+ # ProxyOptions contains the configurable properties for the proxy
1685
+ # configuration used when making an HTTP request.
1686
+ #
1687
+ # source://faraday//lib/faraday/options/proxy_options.rb#8
1688
+ class Faraday::ProxyOptions < ::Faraday::Options
1689
+ extend ::Forwardable
1690
+
1691
+ # source://forwardable/1.3.3/forwardable.rb#231
1692
+ def host(*args, **_arg1, &block); end
1693
+
1694
+ # source://forwardable/1.3.3/forwardable.rb#231
1695
+ def host=(*args, **_arg1, &block); end
1696
+
1697
+ # source://faraday//lib/faraday/options.rb#178
1698
+ def password; end
1699
+
1700
+ def password=(_); end
1701
+
1702
+ # source://forwardable/1.3.3/forwardable.rb#231
1703
+ def path(*args, **_arg1, &block); end
1704
+
1705
+ # source://forwardable/1.3.3/forwardable.rb#231
1706
+ def path=(*args, **_arg1, &block); end
1707
+
1708
+ # source://forwardable/1.3.3/forwardable.rb#231
1709
+ def port(*args, **_arg1, &block); end
1710
+
1711
+ # source://forwardable/1.3.3/forwardable.rb#231
1712
+ def port=(*args, **_arg1, &block); end
1713
+
1714
+ # source://forwardable/1.3.3/forwardable.rb#231
1715
+ def scheme(*args, **_arg1, &block); end
1716
+
1717
+ # source://forwardable/1.3.3/forwardable.rb#231
1718
+ def scheme=(*args, **_arg1, &block); end
1719
+
1720
+ def uri; end
1721
+ def uri=(_); end
1722
+
1723
+ # source://faraday//lib/faraday/options.rb#178
1724
+ def user; end
1725
+
1726
+ def user=(_); end
1727
+
1728
+ class << self
1729
+ def [](*_arg0); end
1730
+
1731
+ # source://faraday//lib/faraday/options/proxy_options.rb#13
1732
+ def from(value); end
1733
+
1734
+ def inspect; end
1735
+ def keyword_init?; end
1736
+ def members; end
1737
+ def new(*_arg0); end
1738
+ end
1739
+ end
1740
+
1741
+ # A Builder that processes requests into responses by passing through an inner
1742
+ # middleware stack (heavily inspired by Rack).
1743
+ #
1744
+ # @example
1745
+ # Faraday::Connection.new(url: 'http://httpbingo.org') do |builder|
1746
+ # builder.request :url_encoded # Faraday::Request::UrlEncoded
1747
+ # builder.adapter :net_http # Faraday::Adapter::NetHttp
1748
+ # end
1749
+ #
1750
+ # source://faraday//lib/faraday/rack_builder.rb#14
1751
+ class Faraday::RackBuilder
1752
+ # @return [RackBuilder] a new instance of RackBuilder
1753
+ #
1754
+ # source://faraday//lib/faraday/rack_builder.rb#60
1755
+ def initialize(&block); end
1756
+
1757
+ # source://faraday//lib/faraday/rack_builder.rb#178
1758
+ def ==(other); end
1759
+
1760
+ # source://faraday//lib/faraday/rack_builder.rb#78
1761
+ def [](idx); end
1762
+
1763
+ # source://faraday//lib/faraday/rack_builder.rb#109
1764
+ def adapter(klass = T.unsafe(nil), *args, **_arg2, &block); end
1765
+
1766
+ # The "rack app" wrapped in middleware. All requests are sent here.
1767
+ #
1768
+ # The builder is responsible for creating the app object. After this,
1769
+ # the builder gets locked to ensure no further modifications are made
1770
+ # to the middleware stack.
1771
+ #
1772
+ # Returns an object that responds to `call` and returns a Response.
1773
+ #
1774
+ # source://faraday//lib/faraday/rack_builder.rb#162
1775
+ def app; end
1776
+
1777
+ # source://faraday//lib/faraday/rack_builder.rb#72
1778
+ def build; end
1779
+
1780
+ # ENV Keys
1781
+ # :http_method - a symbolized request HTTP method (:get, :post)
1782
+ # :body - the request body that will eventually be converted to a string.
1783
+ # :url - URI instance for the current request.
1784
+ # :status - HTTP response status code
1785
+ # :request_headers - hash of HTTP Headers to be sent to the server
1786
+ # :response_headers - Hash of HTTP headers from the server
1787
+ # :parallel_manager - sent if the connection is in parallel mode
1788
+ # :request - Hash of options for configuring the request.
1789
+ # :timeout - open/read timeout Integer in seconds
1790
+ # :open_timeout - read timeout Integer in seconds
1791
+ # :proxy - Hash of proxy options
1792
+ # :uri - Proxy Server URI
1793
+ # :user - Proxy server username
1794
+ # :password - Proxy server password
1795
+ # :ssl - Hash of options for configuring SSL requests.
1796
+ #
1797
+ # source://faraday//lib/faraday/rack_builder.rb#200
1798
+ def build_env(connection, request); end
1799
+
1800
+ # Processes a Request into a Response by passing it through this Builder's
1801
+ # middleware stack.
1802
+ #
1803
+ # @param connection [Faraday::Connection]
1804
+ # @param request [Faraday::Request]
1805
+ # @return [Faraday::Response]
1806
+ #
1807
+ # source://faraday//lib/faraday/rack_builder.rb#151
1808
+ def build_response(connection, request); end
1809
+
1810
+ # source://faraday//lib/faraday/rack_builder.rb#139
1811
+ def delete(handler); end
1812
+
1813
+ # Returns the value of attribute handlers.
1814
+ #
1815
+ # source://faraday//lib/faraday/rack_builder.rb#18
1816
+ def handlers; end
1817
+
1818
+ # Sets the attribute handlers
1819
+ #
1820
+ # @param value the value to set the attribute handlers to.
1821
+ #
1822
+ # source://faraday//lib/faraday/rack_builder.rb#18
1823
+ def handlers=(_arg0); end
1824
+
1825
+ # methods to push onto the various positions in the stack:
1826
+ #
1827
+ # source://faraday//lib/faraday/rack_builder.rb#118
1828
+ def insert(index, *args, **_arg2, &block); end
1829
+
1830
+ # source://faraday//lib/faraday/rack_builder.rb#127
1831
+ def insert_after(index, *args, **_arg2, &block); end
1832
+
1833
+ # methods to push onto the various positions in the stack:
1834
+ #
1835
+ # source://faraday//lib/faraday/rack_builder.rb#118
1836
+ def insert_before(index, *args, **_arg2, &block); end
1837
+
1838
+ # Locks the middleware stack to ensure no further modifications are made.
1839
+ #
1840
+ # source://faraday//lib/faraday/rack_builder.rb#83
1841
+ def lock!; end
1842
+
1843
+ # @return [Boolean]
1844
+ #
1845
+ # source://faraday//lib/faraday/rack_builder.rb#87
1846
+ def locked?; end
1847
+
1848
+ # source://faraday//lib/faraday/rack_builder.rb#101
1849
+ def request(key, *args, **_arg2, &block); end
1850
+
1851
+ # source://faraday//lib/faraday/rack_builder.rb#105
1852
+ def response(key, *args, **_arg2, &block); end
1853
+
1854
+ # source://faraday//lib/faraday/rack_builder.rb#132
1855
+ def swap(index, *args, **_arg2, &block); end
1856
+
1857
+ # source://faraday//lib/faraday/rack_builder.rb#170
1858
+ def to_app; end
1859
+
1860
+ # source://faraday//lib/faraday/rack_builder.rb#91
1861
+ def use(klass, *args, **_arg2, &block); end
1862
+
1863
+ private
1864
+
1865
+ # @return [Boolean]
1866
+ #
1867
+ # source://faraday//lib/faraday/rack_builder.rb#232
1868
+ def adapter_set?; end
1869
+
1870
+ # source://faraday//lib/faraday/rack_builder.rb#244
1871
+ def assert_index(index); end
1872
+
1873
+ # @raise [MISSING_ADAPTER_ERROR]
1874
+ #
1875
+ # source://faraday//lib/faraday/rack_builder.rb#228
1876
+ def ensure_adapter!; end
1877
+
1878
+ # source://faraday//lib/faraday/rack_builder.rb#66
1879
+ def initialize_dup(original); end
1880
+
1881
+ # @return [Boolean]
1882
+ #
1883
+ # source://faraday//lib/faraday/rack_builder.rb#236
1884
+ def is_adapter?(klass); end
1885
+
1886
+ # source://faraday//lib/faraday/rack_builder.rb#222
1887
+ def raise_if_adapter(klass); end
1888
+
1889
+ # @raise [StackLocked]
1890
+ #
1891
+ # source://faraday//lib/faraday/rack_builder.rb#218
1892
+ def raise_if_locked; end
1893
+
1894
+ # source://faraday//lib/faraday/rack_builder.rb#240
1895
+ def use_symbol(mod, key, *args, **_arg3, &block); end
1896
+ end
1897
+
1898
+ # borrowed from ActiveSupport::Dependencies::Reference &
1899
+ # ActionDispatch::MiddlewareStack::Middleware
1900
+ #
1901
+ # source://faraday//lib/faraday/rack_builder.rb#25
1902
+ class Faraday::RackBuilder::Handler
1903
+ # source://faraday//lib/faraday/rack_builder.rb#30
1904
+ def initialize(klass, *args, **_arg2, &block); end
1905
+
1906
+ # source://faraday//lib/faraday/rack_builder.rb#45
1907
+ def ==(other); end
1908
+
1909
+ # source://faraday//lib/faraday/rack_builder.rb#55
1910
+ def build(app = T.unsafe(nil)); end
1911
+
1912
+ # source://faraday//lib/faraday/rack_builder.rb#41
1913
+ def inspect; end
1914
+
1915
+ # source://faraday//lib/faraday/rack_builder.rb#37
1916
+ def klass; end
1917
+
1918
+ # Returns the value of attribute name.
1919
+ #
1920
+ # source://faraday//lib/faraday/rack_builder.rb#28
1921
+ def name; end
1922
+ end
1923
+
1924
+ # source://faraday//lib/faraday/rack_builder.rb#26
1925
+ Faraday::RackBuilder::Handler::REGISTRY = T.let(T.unsafe(nil), Faraday::AdapterRegistry)
1926
+
1927
+ # source://faraday//lib/faraday/rack_builder.rb#213
1928
+ Faraday::RackBuilder::LOCK_ERR = T.let(T.unsafe(nil), String)
1929
+
1930
+ # source://faraday//lib/faraday/rack_builder.rb#214
1931
+ Faraday::RackBuilder::MISSING_ADAPTER_ERROR = T.let(T.unsafe(nil), String)
1932
+
1933
+ # Used to detect missing arguments
1934
+ #
1935
+ # source://faraday//lib/faraday/rack_builder.rb#16
1936
+ Faraday::RackBuilder::NO_ARGUMENT = T.let(T.unsafe(nil), Object)
1937
+
1938
+ # Error raised when trying to modify the stack after calling `lock!`
1939
+ #
1940
+ # source://faraday//lib/faraday/rack_builder.rb#21
1941
+ class Faraday::RackBuilder::StackLocked < ::RuntimeError; end
1942
+
1943
+ # Used to setup URLs, params, headers, and the request body in a sane manner.
1944
+ #
1945
+ # @example
1946
+ # @connection.post do |req|
1947
+ # req.url 'http://localhost', 'a' => '1' # 'http://localhost?a=1'
1948
+ # req.headers['b'] = '2' # Header
1949
+ # req.params['c'] = '3' # GET Param
1950
+ # req['b'] = '2' # also Header
1951
+ # req.body = 'abc'
1952
+ # end
1953
+ #
1954
+ # source://faraday//lib/faraday/request.rb#27
1955
+ class Faraday::Request < ::Struct
1956
+ extend ::Faraday::MiddlewareRegistry
1957
+
1958
+ # @param key [Object] key to look up in headers
1959
+ # @return [Object] value of the given header name
1960
+ #
1961
+ # source://faraday//lib/faraday/request.rb#92
1962
+ def [](key); end
1963
+
1964
+ # @param key [Object] key of header to write
1965
+ # @param value [Object] value of header
1966
+ #
1967
+ # source://faraday//lib/faraday/request.rb#98
1968
+ def []=(key, value); end
1969
+
1970
+ # @return [String] body
1971
+ def body; end
1972
+
1973
+ # @return [String] body
1974
+ def body=(_); end
1975
+
1976
+ # @return [Faraday::Utils::Headers] headers
1977
+ def headers; end
1978
+
1979
+ # Replace request headers, preserving the existing hash type.
1980
+ #
1981
+ # @param hash [Hash] new headers
1982
+ #
1983
+ # source://faraday//lib/faraday/request.rb#61
1984
+ def headers=(hash); end
1985
+
1986
+ # @return [Symbol] the HTTP method of the Request
1987
+ def http_method; end
1988
+
1989
+ # @return [Symbol] the HTTP method of the Request
1990
+ def http_method=(_); end
1991
+
1992
+ # Marshal serialization support.
1993
+ #
1994
+ # @return [Hash] the hash ready to be serialized in Marshal.
1995
+ #
1996
+ # source://faraday//lib/faraday/request.rb#105
1997
+ def marshal_dump; end
1998
+
1999
+ # Marshal serialization support.
2000
+ # Restores the instance variables according to the +serialised+.
2001
+ #
2002
+ # @param serialised [Hash] the serialised object.
2003
+ #
2004
+ # source://faraday//lib/faraday/request.rb#119
2005
+ def marshal_load(serialised); end
2006
+
2007
+ # @return [RequestOptions] options
2008
+ def options; end
2009
+
2010
+ # @return [RequestOptions] options
2011
+ def options=(_); end
2012
+
2013
+ # @return [Hash] query parameters
2014
+ def params; end
2015
+
2016
+ # Replace params, preserving the existing hash type.
2017
+ #
2018
+ # @param hash [Hash] new params
2019
+ #
2020
+ # source://faraday//lib/faraday/request.rb#49
2021
+ def params=(hash); end
2022
+
2023
+ # @return [URI, String] the path
2024
+ def path; end
2025
+
2026
+ # @return [URI, String] the path
2027
+ def path=(_); end
2028
+
2029
+ # @return [Env] the Env for this Request
2030
+ #
2031
+ # source://faraday//lib/faraday/request.rb#129
2032
+ def to_env(connection); end
2033
+
2034
+ # Update path and params.
2035
+ #
2036
+ # @param path [URI, String]
2037
+ # @param params [Hash, nil]
2038
+ # @return [void]
2039
+ #
2040
+ # source://faraday//lib/faraday/request.rb#74
2041
+ def url(path, params = T.unsafe(nil)); end
2042
+
2043
+ private
2044
+
2045
+ def member_get(_arg0); end
2046
+ def member_set(_arg0, _arg1); end
2047
+
2048
+ class << self
2049
+ def [](*_arg0); end
2050
+
2051
+ # @param request_method [String]
2052
+ # @return [Request]
2053
+ # @yield [request] for block customization, if block given
2054
+ # @yieldparam request [Request]
2055
+ #
2056
+ # source://faraday//lib/faraday/request.rb#39
2057
+ def create(request_method); end
2058
+
2059
+ def inspect; end
2060
+ def keyword_init?; end
2061
+ def members; end
2062
+ def new(*_arg0); end
2063
+ end
2064
+ end
2065
+
2066
+ # Request middleware for the Authorization HTTP header
2067
+ #
2068
+ # source://faraday//lib/faraday/request/authorization.rb#6
2069
+ class Faraday::Request::Authorization < ::Faraday::Middleware
2070
+ # @param app [#call]
2071
+ # @param type [String, Symbol] Type of Authorization
2072
+ # @param params [Array<String, Proc, #call>] parameters to build the Authorization header.
2073
+ # If the type is `:basic`, then these can be a login and password pair.
2074
+ # Otherwise, a single value is expected that will be appended after the type.
2075
+ # This value can be a proc or an object responding to `.call`, in which case
2076
+ # it will be invoked on each request.
2077
+ # @return [Authorization] a new instance of Authorization
2078
+ #
2079
+ # source://faraday//lib/faraday/request/authorization.rb#16
2080
+ def initialize(app, type, *params); end
2081
+
2082
+ # @param env [Faraday::Env]
2083
+ #
2084
+ # source://faraday//lib/faraday/request/authorization.rb#23
2085
+ def on_request(env); end
2086
+
2087
+ private
2088
+
2089
+ # @param type [String, Symbol]
2090
+ # @param env [Faraday::Env]
2091
+ # @param params [Array]
2092
+ # @return [String] a header value
2093
+ #
2094
+ # source://faraday//lib/faraday/request/authorization.rb#35
2095
+ def header_from(type, env, *params); end
2096
+ end
2097
+
2098
+ # source://faraday//lib/faraday/request/authorization.rb#7
2099
+ Faraday::Request::Authorization::KEY = T.let(T.unsafe(nil), String)
2100
+
2101
+ # Middleware for instrumenting Requests.
2102
+ #
2103
+ # source://faraday//lib/faraday/request/instrumentation.rb#6
2104
+ class Faraday::Request::Instrumentation < ::Faraday::Middleware
2105
+ # Instruments requests using Active Support.
2106
+ #
2107
+ # Measures time spent only for synchronous requests.
2108
+ #
2109
+ # @example Using ActiveSupport::Notifications to measure time spent
2110
+ # for Faraday requests.
2111
+ # ActiveSupport::Notifications
2112
+ # .subscribe('request.faraday') do |name, starts, ends, _, env|
2113
+ # url = env[:url]
2114
+ # http_method = env[:method].to_s.upcase
2115
+ # duration = ends - starts
2116
+ # $stderr.puts '[%s] %s %s (%.3f s)' %
2117
+ # [url.host, http_method, url.request_uri, duration]
2118
+ # end
2119
+ # @option options
2120
+ # @option options
2121
+ # @param app [#call]
2122
+ # @param options [nil, Hash] Options hash
2123
+ # @return [Instrumentation] a new instance of Instrumentation
2124
+ #
2125
+ # source://faraday//lib/faraday/request/instrumentation.rb#42
2126
+ def initialize(app, options = T.unsafe(nil)); end
2127
+
2128
+ # @param env [Faraday::Env]
2129
+ #
2130
+ # source://faraday//lib/faraday/request/instrumentation.rb#49
2131
+ def call(env); end
2132
+ end
2133
+
2134
+ # Options class used in Request::Instrumentation class.
2135
+ #
2136
+ # source://faraday//lib/faraday/request/instrumentation.rb#8
2137
+ class Faraday::Request::Instrumentation::Options < ::Faraday::Options
2138
+ # source://faraday//lib/faraday/request/instrumentation.rb#17
2139
+ def instrumenter; end
2140
+
2141
+ def instrumenter=(_); end
2142
+
2143
+ # source://faraday//lib/faraday/request/instrumentation.rb#11
2144
+ def name; end
2145
+
2146
+ def name=(_); end
2147
+
2148
+ class << self
2149
+ def [](*_arg0); end
2150
+ def inspect; end
2151
+ def keyword_init?; end
2152
+ def members; end
2153
+ def new(*_arg0); end
2154
+ end
2155
+ end
2156
+
2157
+ # Request middleware that encodes the body as JSON.
2158
+ #
2159
+ # Processes only requests with matching Content-type or those without a type.
2160
+ # If a request doesn't have a type but has a body, it sets the Content-type
2161
+ # to JSON MIME-type.
2162
+ #
2163
+ # Doesn't try to encode bodies that already are in string form.
2164
+ #
2165
+ # source://faraday//lib/faraday/request/json.rb#14
2166
+ class Faraday::Request::Json < ::Faraday::Middleware
2167
+ # source://faraday//lib/faraday/request/json.rb#18
2168
+ def on_request(env); end
2169
+
2170
+ private
2171
+
2172
+ # @return [Boolean]
2173
+ #
2174
+ # source://faraday//lib/faraday/request/json.rb#48
2175
+ def body?(env); end
2176
+
2177
+ # source://faraday//lib/faraday/request/json.rb#26
2178
+ def encode(data); end
2179
+
2180
+ # @yield []
2181
+ #
2182
+ # source://faraday//lib/faraday/request/json.rb#36
2183
+ def match_content_type(env); end
2184
+
2185
+ # @return [Boolean]
2186
+ #
2187
+ # source://faraday//lib/faraday/request/json.rb#43
2188
+ def process_request?(env); end
2189
+
2190
+ # source://faraday//lib/faraday/request/json.rb#61
2191
+ def request_type(env); end
2192
+ end
2193
+
2194
+ # source://faraday//lib/faraday/request/json.rb#15
2195
+ Faraday::Request::Json::MIME_TYPE = T.let(T.unsafe(nil), String)
2196
+
2197
+ # source://faraday//lib/faraday/request/json.rb#16
2198
+ Faraday::Request::Json::MIME_TYPE_REGEX = T.let(T.unsafe(nil), Regexp)
2199
+
2200
+ # Middleware for supporting urlencoded requests.
2201
+ #
2202
+ # source://faraday//lib/faraday/request/url_encoded.rb#6
2203
+ class Faraday::Request::UrlEncoded < ::Faraday::Middleware
2204
+ # Encodes as "application/x-www-form-urlencoded" if not already encoded or
2205
+ # of another type.
2206
+ #
2207
+ # @param env [Faraday::Env]
2208
+ #
2209
+ # source://faraday//lib/faraday/request/url_encoded.rb#20
2210
+ def call(env); end
2211
+
2212
+ # @param env [Faraday::Env]
2213
+ # @yield [request_body] Body of the request
2214
+ #
2215
+ # source://faraday//lib/faraday/request/url_encoded.rb#30
2216
+ def match_content_type(env); end
2217
+
2218
+ # @param env [Faraday::Env]
2219
+ # @return [Boolean] True if the request has a body and its Content-Type is
2220
+ # urlencoded.
2221
+ #
2222
+ # source://faraday//lib/faraday/request/url_encoded.rb#43
2223
+ def process_request?(env); end
2224
+
2225
+ # @param env [Faraday::Env]
2226
+ # @return [String]
2227
+ #
2228
+ # source://faraday//lib/faraday/request/url_encoded.rb#51
2229
+ def request_type(env); end
2230
+
2231
+ class << self
2232
+ # Returns the value of attribute mime_type.
2233
+ #
2234
+ # source://faraday//lib/faraday/request/url_encoded.rb#12
2235
+ def mime_type; end
2236
+
2237
+ # Sets the attribute mime_type
2238
+ #
2239
+ # @param value the value to set the attribute mime_type to.
2240
+ #
2241
+ # source://faraday//lib/faraday/request/url_encoded.rb#12
2242
+ def mime_type=(_arg0); end
2243
+ end
2244
+ end
2245
+
2246
+ # source://faraday//lib/faraday/request/url_encoded.rb#8
2247
+ Faraday::Request::UrlEncoded::CONTENT_TYPE = T.let(T.unsafe(nil), String)
2248
+
2249
+ # RequestOptions contains the configurable properties for a Faraday request.
2250
+ #
2251
+ # source://faraday//lib/faraday/options/request_options.rb#7
2252
+ class Faraday::RequestOptions < ::Faraday::Options
2253
+ # source://faraday//lib/faraday/options/request_options.rb#11
2254
+ def []=(key, value); end
2255
+
2256
+ def bind; end
2257
+ def bind=(_); end
2258
+ def boundary; end
2259
+ def boundary=(_); end
2260
+ def context; end
2261
+ def context=(_); end
2262
+ def oauth; end
2263
+ def oauth=(_); end
2264
+ def on_data; end
2265
+ def on_data=(_); end
2266
+ def open_timeout; end
2267
+ def open_timeout=(_); end
2268
+ def params_encoder; end
2269
+ def params_encoder=(_); end
2270
+ def proxy; end
2271
+ def proxy=(_); end
2272
+ def read_timeout; end
2273
+ def read_timeout=(_); end
2274
+
2275
+ # source://faraday//lib/faraday/options/request_options.rb#19
2276
+ def stream_response?; end
2277
+
2278
+ def timeout; end
2279
+ def timeout=(_); end
2280
+ def write_timeout; end
2281
+ def write_timeout=(_); end
2282
+
2283
+ class << self
2284
+ def [](*_arg0); end
2285
+ def inspect; end
2286
+ def keyword_init?; end
2287
+ def members; end
2288
+ def new(*_arg0); end
2289
+ end
2290
+ end
2291
+
2292
+ # Raised by Faraday::Response::RaiseError in case of a 408 response.
2293
+ #
2294
+ # source://faraday//lib/faraday/error.rb#116
2295
+ class Faraday::RequestTimeoutError < ::Faraday::ClientError; end
2296
+
2297
+ # Raised by Faraday::Response::RaiseError in case of a 404 response.
2298
+ #
2299
+ # source://faraday//lib/faraday/error.rb#108
2300
+ class Faraday::ResourceNotFound < ::Faraday::ClientError; end
2301
+
2302
+ # Response represents an HTTP response from making an HTTP request.
2303
+ #
2304
+ # source://faraday//lib/faraday/response.rb#7
2305
+ class Faraday::Response
2306
+ extend ::Forwardable
2307
+ extend ::Faraday::MiddlewareRegistry
2308
+
2309
+ # @return [Response] a new instance of Response
2310
+ #
2311
+ # source://faraday//lib/faraday/response.rb#11
2312
+ def initialize(env = T.unsafe(nil)); end
2313
+
2314
+ # source://forwardable/1.3.3/forwardable.rb#231
2315
+ def [](*args, **_arg1, &block); end
2316
+
2317
+ # Expand the env with more properties, without overriding existing ones.
2318
+ # Useful for applying request params after restoring a marshalled Response.
2319
+ #
2320
+ # source://faraday//lib/faraday/response.rb#80
2321
+ def apply_request(request_env); end
2322
+
2323
+ # source://faraday//lib/faraday/response.rb#32
2324
+ def body; end
2325
+
2326
+ # Returns the value of attribute env.
2327
+ #
2328
+ # source://faraday//lib/faraday/response.rb#16
2329
+ def env; end
2330
+
2331
+ # source://faraday//lib/faraday/response.rb#49
2332
+ def finish(env); end
2333
+
2334
+ # @return [Boolean]
2335
+ #
2336
+ # source://faraday//lib/faraday/response.rb#36
2337
+ def finished?; end
2338
+
2339
+ # source://faraday//lib/faraday/response.rb#26
2340
+ def headers; end
2341
+
2342
+ # because @on_complete_callbacks cannot be marshalled
2343
+ #
2344
+ # source://faraday//lib/faraday/response.rb#70
2345
+ def marshal_dump; end
2346
+
2347
+ # source://faraday//lib/faraday/response.rb#74
2348
+ def marshal_load(env); end
2349
+
2350
+ # source://faraday//lib/faraday/response.rb#40
2351
+ def on_complete(&block); end
2352
+
2353
+ # source://faraday//lib/faraday/response.rb#22
2354
+ def reason_phrase; end
2355
+
2356
+ # source://faraday//lib/faraday/response.rb#18
2357
+ def status; end
2358
+
2359
+ # @return [Boolean]
2360
+ #
2361
+ # source://faraday//lib/faraday/response.rb#57
2362
+ def success?; end
2363
+
2364
+ # source://faraday//lib/faraday/response.rb#61
2365
+ def to_hash; end
2366
+ end
2367
+
2368
+ # Parse response bodies as JSON.
2369
+ #
2370
+ # source://faraday//lib/faraday/response/json.rb#8
2371
+ class Faraday::Response::Json < ::Faraday::Middleware
2372
+ # @return [Json] a new instance of Json
2373
+ #
2374
+ # source://faraday//lib/faraday/response/json.rb#9
2375
+ def initialize(app = T.unsafe(nil), parser_options: T.unsafe(nil), content_type: T.unsafe(nil), preserve_raw: T.unsafe(nil)); end
2376
+
2377
+ # source://faraday//lib/faraday/response/json.rb#18
2378
+ def on_complete(env); end
2379
+
2380
+ private
2381
+
2382
+ # source://faraday//lib/faraday/response/json.rb#31
2383
+ def parse(body); end
2384
+
2385
+ # @return [Boolean]
2386
+ #
2387
+ # source://faraday//lib/faraday/response/json.rb#39
2388
+ def parse_response?(env); end
2389
+
2390
+ # source://faraday//lib/faraday/response/json.rb#57
2391
+ def process_parser_options; end
2392
+
2393
+ # source://faraday//lib/faraday/response/json.rb#24
2394
+ def process_response(env); end
2395
+
2396
+ # @return [Boolean]
2397
+ #
2398
+ # source://faraday//lib/faraday/response/json.rb#44
2399
+ def process_response_type?(env); end
2400
+
2401
+ # source://faraday//lib/faraday/response/json.rb#51
2402
+ def response_type(env); end
2403
+ end
2404
+
2405
+ # Logger is a middleware that logs internal events in the HTTP request
2406
+ # lifecycle to a given Logger object. By default, this logs to STDOUT. See
2407
+ # Faraday::Logging::Formatter to see specifically what is logged.
2408
+ #
2409
+ # source://faraday//lib/faraday/response/logger.rb#12
2410
+ class Faraday::Response::Logger < ::Faraday::Middleware
2411
+ # @return [Logger] a new instance of Logger
2412
+ # @yield [@formatter]
2413
+ #
2414
+ # source://faraday//lib/faraday/response/logger.rb#13
2415
+ def initialize(app, logger = T.unsafe(nil), options = T.unsafe(nil)); end
2416
+
2417
+ # source://faraday//lib/faraday/response/logger.rb#21
2418
+ def call(env); end
2419
+
2420
+ # source://faraday//lib/faraday/response/logger.rb#26
2421
+ def on_complete(env); end
2422
+
2423
+ # source://faraday//lib/faraday/response/logger.rb#30
2424
+ def on_error(exc); end
2425
+ end
2426
+
2427
+ # RaiseError is a Faraday middleware that raises exceptions on common HTTP
2428
+ # client or server error responses.
2429
+ #
2430
+ # source://faraday//lib/faraday/response/raise_error.rb#7
2431
+ class Faraday::Response::RaiseError < ::Faraday::Middleware
2432
+ # source://faraday//lib/faraday/response/raise_error.rb#13
2433
+ def on_complete(env); end
2434
+
2435
+ # source://faraday//lib/faraday/response/raise_error.rb#75
2436
+ def query_params(env); end
2437
+
2438
+ # Returns a hash of response data with the following keys:
2439
+ # - status
2440
+ # - headers
2441
+ # - body
2442
+ # - request
2443
+ #
2444
+ # The `request` key is omitted when the middleware is explicitly
2445
+ # configured with the option `include_request: false`.
2446
+ #
2447
+ # source://faraday//lib/faraday/response/raise_error.rb#52
2448
+ def response_values(env); end
2449
+ end
2450
+
2451
+ # source://faraday//lib/faraday/response/raise_error.rb#9
2452
+ Faraday::Response::RaiseError::ClientErrorStatuses = T.let(T.unsafe(nil), Range)
2453
+
2454
+ # source://faraday//lib/faraday/response/raise_error.rb#10
2455
+ Faraday::Response::RaiseError::ServerErrorStatuses = T.let(T.unsafe(nil), Range)
2456
+
2457
+ # A unified client error for SSL errors.
2458
+ #
2459
+ # source://faraday//lib/faraday/error.rb#155
2460
+ class Faraday::SSLError < ::Faraday::Error; end
2461
+
2462
+ # SSL-related options.
2463
+ #
2464
+ # source://faraday//lib/faraday/options/ssl_options.rb#50
2465
+ class Faraday::SSLOptions < ::Faraday::Options
2466
+ # @return [String] CA file
2467
+ def ca_file; end
2468
+
2469
+ # @return [String] CA file
2470
+ def ca_file=(_); end
2471
+
2472
+ # @return [String] CA path
2473
+ def ca_path; end
2474
+
2475
+ # @return [String] CA path
2476
+ def ca_path=(_); end
2477
+
2478
+ # @return [OpenSSL::X509::Store] certificate store
2479
+ def cert_store; end
2480
+
2481
+ # @return [OpenSSL::X509::Store] certificate store
2482
+ def cert_store=(_); end
2483
+
2484
+ # @return [OpenSSL::X509::Certificate] certificate (Excon only)
2485
+ def certificate; end
2486
+
2487
+ # @return [OpenSSL::X509::Certificate] certificate (Excon only)
2488
+ def certificate=(_); end
2489
+
2490
+ # @return [String, OpenSSL::X509::Certificate] client certificate
2491
+ def client_cert; end
2492
+
2493
+ # @return [String, OpenSSL::X509::Certificate] client certificate
2494
+ def client_cert=(_); end
2495
+
2496
+ # @return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key
2497
+ def client_key; end
2498
+
2499
+ # @return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key
2500
+ def client_key=(_); end
2501
+
2502
+ # source://faraday//lib/faraday/options/ssl_options.rb#61
2503
+ def disable?; end
2504
+
2505
+ # @return [String, Symbol] maximum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D)
2506
+ def max_version; end
2507
+
2508
+ # @return [String, Symbol] maximum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D)
2509
+ def max_version=(_); end
2510
+
2511
+ # @return [String, Symbol] minimum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D)
2512
+ def min_version; end
2513
+
2514
+ # @return [String, Symbol] minimum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-min_version-3D)
2515
+ def min_version=(_); end
2516
+
2517
+ # @return [OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] private key (Excon only)
2518
+ def private_key; end
2519
+
2520
+ # @return [OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] private key (Excon only)
2521
+ def private_key=(_); end
2522
+
2523
+ # @return [Boolean] whether to verify SSL certificates or not
2524
+ def verify; end
2525
+
2526
+ # @return [Boolean] whether to verify SSL certificates or not
2527
+ def verify=(_); end
2528
+
2529
+ # source://faraday//lib/faraday/options/ssl_options.rb#56
2530
+ def verify?; end
2531
+
2532
+ # @return [Integer] maximum depth for the certificate chain verification
2533
+ def verify_depth; end
2534
+
2535
+ # @return [Integer] maximum depth for the certificate chain verification
2536
+ def verify_depth=(_); end
2537
+
2538
+ # @return [Boolean] whether to enable hostname verification on server certificates
2539
+ # during the handshake or not (see https://github.com/ruby/openssl/pull/60)
2540
+ def verify_hostname; end
2541
+
2542
+ # @return [Boolean] whether to enable hostname verification on server certificates
2543
+ # during the handshake or not (see https://github.com/ruby/openssl/pull/60)
2544
+ def verify_hostname=(_); end
2545
+
2546
+ # source://faraday//lib/faraday/options/ssl_options.rb#66
2547
+ def verify_hostname?; end
2548
+
2549
+ # @return [Integer] Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
2550
+ def verify_mode; end
2551
+
2552
+ # @return [Integer] Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html)
2553
+ def verify_mode=(_); end
2554
+
2555
+ # @return [String, Symbol] SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D)
2556
+ def version; end
2557
+
2558
+ # @return [String, Symbol] SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ssl_version-3D)
2559
+ def version=(_); end
2560
+
2561
+ class << self
2562
+ def [](*_arg0); end
2563
+ def inspect; end
2564
+ def keyword_init?; end
2565
+ def members; end
2566
+ def new(*_arg0); end
2567
+ end
2568
+ end
2569
+
2570
+ # Faraday server error class. Represents 5xx status responses.
2571
+ #
2572
+ # source://faraday//lib/faraday/error.rb#132
2573
+ class Faraday::ServerError < ::Faraday::Error; end
2574
+
2575
+ # A unified client error for timeouts.
2576
+ #
2577
+ # source://faraday//lib/faraday/error.rb#136
2578
+ class Faraday::TimeoutError < ::Faraday::ServerError
2579
+ # @return [TimeoutError] a new instance of TimeoutError
2580
+ #
2581
+ # source://faraday//lib/faraday/error.rb#137
2582
+ def initialize(exc = T.unsafe(nil), response = T.unsafe(nil)); end
2583
+ end
2584
+
2585
+ # Raised by Faraday::Response::RaiseError in case of a 429 response.
2586
+ #
2587
+ # source://faraday//lib/faraday/error.rb#128
2588
+ class Faraday::TooManyRequestsError < ::Faraday::ClientError; end
2589
+
2590
+ # Raised by Faraday::Response::RaiseError in case of a 401 response.
2591
+ #
2592
+ # source://faraday//lib/faraday/error.rb#100
2593
+ class Faraday::UnauthorizedError < ::Faraday::ClientError; end
2594
+
2595
+ # Raised by Faraday::Response::RaiseError in case of a 422 response.
2596
+ #
2597
+ # source://faraday//lib/faraday/error.rb#124
2598
+ class Faraday::UnprocessableEntityError < ::Faraday::ClientError; end
2599
+
2600
+ # Utils contains various static helper methods.
2601
+ #
2602
+ # source://faraday//lib/faraday/utils/headers.rb#4
2603
+ module Faraday::Utils
2604
+ private
2605
+
2606
+ # Normalize URI() behavior across Ruby versions
2607
+ #
2608
+ # url - A String or URI.
2609
+ #
2610
+ # Returns a parsed URI.
2611
+ #
2612
+ # source://faraday//lib/faraday/utils.rb#70
2613
+ def URI(url); end
2614
+
2615
+ # source://faraday//lib/faraday/utils.rb#55
2616
+ def basic_header_from(login, pass); end
2617
+
2618
+ # source://faraday//lib/faraday/utils.rb#16
2619
+ def build_nested_query(params); end
2620
+
2621
+ # source://faraday//lib/faraday/utils.rb#12
2622
+ def build_query(params); end
2623
+
2624
+ # Recursive hash merge
2625
+ #
2626
+ # source://faraday//lib/faraday/utils.rb#113
2627
+ def deep_merge(source, hash); end
2628
+
2629
+ # Recursive hash update
2630
+ #
2631
+ # source://faraday//lib/faraday/utils.rb#101
2632
+ def deep_merge!(target, hash); end
2633
+
2634
+ # source://faraday//lib/faraday/utils.rb#51
2635
+ def default_params_encoder; end
2636
+
2637
+ # source://faraday//lib/faraday/utils.rb#20
2638
+ def default_space_encoding; end
2639
+
2640
+ # source://faraday//lib/faraday/utils.rb#80
2641
+ def default_uri_parser; end
2642
+
2643
+ # source://faraday//lib/faraday/utils.rb#84
2644
+ def default_uri_parser=(parser); end
2645
+
2646
+ # source://faraday//lib/faraday/utils.rb#30
2647
+ def escape(str); end
2648
+
2649
+ # Receives a String or URI and returns just
2650
+ # the path with the query string sorted.
2651
+ #
2652
+ # source://faraday//lib/faraday/utils.rb#94
2653
+ def normalize_path(url); end
2654
+
2655
+ # source://faraday//lib/faraday/utils.rb#47
2656
+ def parse_nested_query(query); end
2657
+
2658
+ # Adapted from Rack
2659
+ #
2660
+ # source://faraday//lib/faraday/utils.rb#43
2661
+ def parse_query(query); end
2662
+
2663
+ # source://faraday//lib/faraday/utils.rb#117
2664
+ def sort_query_params(query); end
2665
+
2666
+ # source://faraday//lib/faraday/utils.rb#36
2667
+ def unescape(str); end
2668
+
2669
+ class << self
2670
+ # Normalize URI() behavior across Ruby versions
2671
+ #
2672
+ # url - A String or URI.
2673
+ #
2674
+ # Returns a parsed URI.
2675
+ #
2676
+ # source://faraday//lib/faraday/utils.rb#70
2677
+ def URI(url); end
2678
+
2679
+ # source://faraday//lib/faraday/utils.rb#55
2680
+ def basic_header_from(login, pass); end
2681
+
2682
+ # source://faraday//lib/faraday/utils.rb#16
2683
+ def build_nested_query(params); end
2684
+
2685
+ # source://faraday//lib/faraday/utils.rb#12
2686
+ def build_query(params); end
2687
+
2688
+ # Recursive hash merge
2689
+ #
2690
+ # source://faraday//lib/faraday/utils.rb#113
2691
+ def deep_merge(source, hash); end
2692
+
2693
+ # Recursive hash update
2694
+ #
2695
+ # source://faraday//lib/faraday/utils.rb#101
2696
+ def deep_merge!(target, hash); end
2697
+
2698
+ # source://faraday//lib/faraday/utils.rb#51
2699
+ def default_params_encoder; end
2700
+
2701
+ # Sets the attribute default_params_encoder
2702
+ #
2703
+ # @param value the value to set the attribute default_params_encoder to.
2704
+ #
2705
+ # source://faraday//lib/faraday/utils.rb#62
2706
+ def default_params_encoder=(_arg0); end
2707
+
2708
+ # source://faraday//lib/faraday/utils.rb#20
2709
+ def default_space_encoding; end
2710
+
2711
+ # Sets the attribute default_space_encoding
2712
+ #
2713
+ # @param value the value to set the attribute default_space_encoding to.
2714
+ #
2715
+ # source://faraday//lib/faraday/utils.rb#25
2716
+ def default_space_encoding=(_arg0); end
2717
+
2718
+ # source://faraday//lib/faraday/utils.rb#80
2719
+ def default_uri_parser; end
2720
+
2721
+ # source://faraday//lib/faraday/utils.rb#84
2722
+ def default_uri_parser=(parser); end
2723
+
2724
+ # source://faraday//lib/faraday/utils.rb#30
2725
+ def escape(str); end
2726
+
2727
+ # Receives a String or URI and returns just
2728
+ # the path with the query string sorted.
2729
+ #
2730
+ # source://faraday//lib/faraday/utils.rb#94
2731
+ def normalize_path(url); end
2732
+
2733
+ # source://faraday//lib/faraday/utils.rb#47
2734
+ def parse_nested_query(query); end
2735
+
2736
+ # Adapted from Rack
2737
+ #
2738
+ # source://faraday//lib/faraday/utils.rb#43
2739
+ def parse_query(query); end
2740
+
2741
+ # source://faraday//lib/faraday/utils.rb#117
2742
+ def sort_query_params(query); end
2743
+
2744
+ # source://faraday//lib/faraday/utils.rb#36
2745
+ def unescape(str); end
2746
+ end
2747
+ end
2748
+
2749
+ # source://faraday//lib/faraday/utils.rb#40
2750
+ Faraday::Utils::DEFAULT_SEP = T.let(T.unsafe(nil), Regexp)
2751
+
2752
+ # source://faraday//lib/faraday/utils.rb#28
2753
+ Faraday::Utils::ESCAPE_RE = T.let(T.unsafe(nil), Regexp)
2754
+
2755
+ # A case-insensitive Hash that preserves the original case of a header
2756
+ # when set.
2757
+ #
2758
+ # Adapted from Rack::Utils::HeaderHash
2759
+ #
2760
+ # source://faraday//lib/faraday/utils/headers.rb#9
2761
+ class Faraday::Utils::Headers < ::Hash
2762
+ # @return [Headers] a new instance of Headers
2763
+ #
2764
+ # source://faraday//lib/faraday/utils/headers.rb#20
2765
+ def initialize(hash = T.unsafe(nil)); end
2766
+
2767
+ # source://faraday//lib/faraday/utils/headers.rb#52
2768
+ def [](key); end
2769
+
2770
+ # source://faraday//lib/faraday/utils/headers.rb#57
2771
+ def []=(key, val); end
2772
+
2773
+ # source://faraday//lib/faraday/utils/headers.rb#71
2774
+ def delete(key); end
2775
+
2776
+ # source://faraday//lib/faraday/utils/headers.rb#65
2777
+ def fetch(key, *args, &block); end
2778
+
2779
+ # @return [Boolean]
2780
+ #
2781
+ # source://faraday//lib/faraday/utils/headers.rb#80
2782
+ def has_key?(key); end
2783
+
2784
+ # @return [Boolean]
2785
+ #
2786
+ # source://faraday//lib/faraday/utils/headers.rb#80
2787
+ def include?(key); end
2788
+
2789
+ # source://faraday//lib/faraday/utils/headers.rb#26
2790
+ def initialize_names; end
2791
+
2792
+ # @return [Boolean]
2793
+ #
2794
+ # source://faraday//lib/faraday/utils/headers.rb#80
2795
+ def key?(key); end
2796
+
2797
+ # @return [Boolean]
2798
+ #
2799
+ # source://faraday//lib/faraday/utils/headers.rb#80
2800
+ def member?(key); end
2801
+
2802
+ # source://faraday//lib/faraday/utils/headers.rb#95
2803
+ def merge(other); end
2804
+
2805
+ # source://faraday//lib/faraday/utils/headers.rb#88
2806
+ def merge!(other); end
2807
+
2808
+ # source://faraday//lib/faraday/utils/headers.rb#111
2809
+ def parse(header_string); end
2810
+
2811
+ # source://faraday//lib/faraday/utils/headers.rb#100
2812
+ def replace(other); end
2813
+
2814
+ # source://faraday//lib/faraday/utils/headers.rb#107
2815
+ def to_hash; end
2816
+
2817
+ # source://faraday//lib/faraday/utils/headers.rb#88
2818
+ def update(other); end
2819
+
2820
+ protected
2821
+
2822
+ # Returns the value of attribute names.
2823
+ #
2824
+ # source://faraday//lib/faraday/utils/headers.rb#129
2825
+ def names; end
2826
+
2827
+ private
2828
+
2829
+ # Join multiple values with a comma.
2830
+ #
2831
+ # source://faraday//lib/faraday/utils/headers.rb#134
2832
+ def add_parsed(key, value); end
2833
+
2834
+ # on dup/clone, we need to duplicate @names hash
2835
+ #
2836
+ # source://faraday//lib/faraday/utils/headers.rb#31
2837
+ def initialize_copy(other); end
2838
+
2839
+ class << self
2840
+ # source://faraday//lib/faraday/utils/headers.rb#14
2841
+ def allocate; end
2842
+
2843
+ # source://faraday//lib/faraday/utils/headers.rb#10
2844
+ def from(value); end
2845
+ end
2846
+ end
2847
+
2848
+ # symbol -> string mapper + cache
2849
+ #
2850
+ # source://faraday//lib/faraday/utils/headers.rb#40
2851
+ Faraday::Utils::Headers::KeyMap = T.let(T.unsafe(nil), Hash)
2852
+
2853
+ # A hash with stringified keys.
2854
+ #
2855
+ # source://faraday//lib/faraday/utils/params_hash.rb#6
2856
+ class Faraday::Utils::ParamsHash < ::Hash
2857
+ # source://faraday//lib/faraday/utils/params_hash.rb#7
2858
+ def [](key); end
2859
+
2860
+ # source://faraday//lib/faraday/utils/params_hash.rb#11
2861
+ def []=(key, value); end
2862
+
2863
+ # source://faraday//lib/faraday/utils/params_hash.rb#15
2864
+ def delete(key); end
2865
+
2866
+ # @return [Boolean]
2867
+ #
2868
+ # source://faraday//lib/faraday/utils/params_hash.rb#19
2869
+ def has_key?(key); end
2870
+
2871
+ # @return [Boolean]
2872
+ #
2873
+ # source://faraday//lib/faraday/utils/params_hash.rb#19
2874
+ def include?(key); end
2875
+
2876
+ # @return [Boolean]
2877
+ #
2878
+ # source://faraday//lib/faraday/utils/params_hash.rb#19
2879
+ def key?(key); end
2880
+
2881
+ # @return [Boolean]
2882
+ #
2883
+ # source://faraday//lib/faraday/utils/params_hash.rb#19
2884
+ def member?(key); end
2885
+
2886
+ # source://faraday//lib/faraday/utils/params_hash.rb#35
2887
+ def merge(params); end
2888
+
2889
+ # source://faraday//lib/faraday/utils/params_hash.rb#27
2890
+ def merge!(params); end
2891
+
2892
+ # source://faraday//lib/faraday/utils/params_hash.rb#44
2893
+ def merge_query(query, encoder = T.unsafe(nil)); end
2894
+
2895
+ # source://faraday//lib/faraday/utils/params_hash.rb#39
2896
+ def replace(other); end
2897
+
2898
+ # source://faraday//lib/faraday/utils/params_hash.rb#50
2899
+ def to_query(encoder = T.unsafe(nil)); end
2900
+
2901
+ # source://faraday//lib/faraday/utils/params_hash.rb#27
2902
+ def update(params); end
2903
+
2904
+ private
2905
+
2906
+ # source://faraday//lib/faraday/utils/params_hash.rb#56
2907
+ def convert_key(key); end
2908
+ end
2909
+
2910
+ # source://faraday//lib/faraday/version.rb#4
2911
+ Faraday::VERSION = T.let(T.unsafe(nil), String)