shotgrid_api_ruby 0.2.0.5 → 0.2.0.6

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