greeenboii 0.1.5 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.idea/dataSources.local.xml +1 -1
  3. data/.idea/greeenboii.iml +0 -2
  4. data/.idea/vcs.xml +1 -0
  5. data/.idea/workspace.xml +154 -123
  6. data/.rubocop.sorbet.yml +5 -0
  7. data/.rubocop.yml +36 -0
  8. data/README.md +5 -0
  9. data/exe/greeenboii +1 -1
  10. data/lib/greeenboii/version.rb +5 -5
  11. data/lib/greeenboii.rb +447 -234
  12. data/sig/greeenboii/todo_list.rbs +30 -0
  13. data/sorbet/rbi/gems/.gitattributes +1 -0
  14. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  15. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  16. data/sorbet/rbi/gems/bigdecimal@3.1.9.rbi +9 -0
  17. data/sorbet/rbi/gems/cli-ui@2.3.0.rbi +3181 -0
  18. data/sorbet/rbi/gems/console_table@0.3.1.rbi +78 -0
  19. data/sorbet/rbi/gems/csv@3.3.2.rbi +9 -0
  20. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  21. data/sorbet/rbi/gems/httparty@0.22.0.rbi +2115 -0
  22. data/sorbet/rbi/gems/json@2.10.1.rbi +2120 -0
  23. data/sorbet/rbi/gems/language_server-protocol@3.17.0.4.rbi +9 -0
  24. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +86 -0
  25. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
  26. data/sorbet/rbi/gems/minitest@5.25.4.rbi +1547 -0
  27. data/sorbet/rbi/gems/multi_xml@0.7.1.rbi +9 -0
  28. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  29. data/sorbet/rbi/gems/nokogiri@1.18.3.rbi +8205 -0
  30. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  31. data/sorbet/rbi/gems/parser@3.3.7.1.rbi +5525 -0
  32. data/sorbet/rbi/gems/prism@1.3.0.rbi +41403 -0
  33. data/sorbet/rbi/gems/racc@1.8.1.rbi +164 -0
  34. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  35. data/sorbet/rbi/gems/rake-compiler@1.2.9.rbi +9 -0
  36. data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
  37. data/sorbet/rbi/gems/rbi@0.2.4.rbi +4542 -0
  38. data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3795 -0
  39. data/sorbet/rbi/gems/rubocop-ast@1.38.0.rbi +7654 -0
  40. data/sorbet/rbi/gems/rubocop@1.72.2.rbi +61026 -0
  41. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  42. data/sorbet/rbi/gems/spoom@1.5.4.rbi +5026 -0
  43. data/sorbet/rbi/gems/sqlite3@2.6.0.rbi +1895 -0
  44. data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3656 -0
  45. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  46. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +132 -0
  47. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  48. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  49. data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
  50. data/sorbet/tapioca/require.rb +6 -0
  51. metadata +47 -8
@@ -0,0 +1,2115 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `httparty` gem.
5
+ # Please instead update this file by running `bin/tapioca gem httparty`.
6
+
7
+
8
+ # @see HTTParty::ClassMethods
9
+ #
10
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#3
11
+ module HTTParty
12
+ include ::HTTParty::ModuleInheritableAttributes
13
+
14
+ mixes_in_class_methods ::HTTParty::ClassMethods
15
+ mixes_in_class_methods ::HTTParty::ModuleInheritableAttributes::ClassMethods
16
+
17
+ class << self
18
+ # source://httparty//lib/httparty.rb#679
19
+ def build_request(*args, &block); end
20
+
21
+ # source://httparty//lib/httparty.rb#667
22
+ def copy(*args, &block); end
23
+
24
+ # source://httparty//lib/httparty.rb#659
25
+ def delete(*args, &block); end
26
+
27
+ # source://httparty//lib/httparty.rb#643
28
+ def get(*args, &block); end
29
+
30
+ # source://httparty//lib/httparty.rb#671
31
+ def head(*args, &block); end
32
+
33
+ # @private
34
+ #
35
+ # source://httparty//lib/httparty.rb#21
36
+ def included(base); end
37
+
38
+ # source://httparty//lib/httparty.rb#663
39
+ def move(*args, &block); end
40
+
41
+ # source://httparty//lib/httparty.rb#628
42
+ def normalize_base_uri(url); end
43
+
44
+ # source://httparty//lib/httparty.rb#675
45
+ def options(*args, &block); end
46
+
47
+ # source://httparty//lib/httparty.rb#651
48
+ def patch(*args, &block); end
49
+
50
+ # source://httparty//lib/httparty.rb#647
51
+ def post(*args, &block); end
52
+
53
+ # source://httparty//lib/httparty.rb#655
54
+ def put(*args, &block); end
55
+ end
56
+ end
57
+
58
+ # source://httparty//lib/httparty.rb#639
59
+ class HTTParty::Basement
60
+ include ::HTTParty
61
+ include ::HTTParty::ModuleInheritableAttributes
62
+ extend ::HTTParty::ClassMethods
63
+ extend ::HTTParty::ModuleInheritableAttributes::ClassMethods
64
+
65
+ class << self
66
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#32
67
+ def default_cookies; end
68
+
69
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#32
70
+ def default_cookies=(_arg0); end
71
+
72
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#32
73
+ def default_options; end
74
+
75
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#32
76
+ def default_options=(_arg0); end
77
+ end
78
+ end
79
+
80
+ # == Common Request Options
81
+ # Request methods (get, post, patch, put, delete, head, options) all take a common set of options. These are:
82
+ #
83
+ # [:+body+:] Body of the request. If passed an object that responds to #to_hash, will try to normalize it first, by default passing it to ActiveSupport::to_params. Any other kind of object will get used as-is.
84
+ # [:+http_proxyaddr+:] Address of proxy server to use.
85
+ # [:+http_proxyport+:] Port of proxy server to use.
86
+ # [:+http_proxyuser+:] User for proxy server authentication.
87
+ # [:+http_proxypass+:] Password for proxy server authentication.
88
+ # [:+limit+:] Maximum number of redirects to follow. Takes precedences over :+no_follow+.
89
+ # [:+query+:] Query string, or an object that responds to #to_hash representing it. Normalized according to the same rules as :+body+. If you specify this on a POST, you must use an object which responds to #to_hash. See also HTTParty::ClassMethods.default_params.
90
+ # [:+timeout+:] Timeout for opening connection and reading data.
91
+ # [:+local_host+:] Local address to bind to before connecting.
92
+ # [:+local_port+:] Local port to bind to before connecting.
93
+ # [:+body_stream+:] Allow streaming to a REST server to specify a body_stream.
94
+ # [:+stream_body+:] Allow for streaming large files without loading them into memory.
95
+ # [:+multipart+:] Force content-type to be multipart
96
+ #
97
+ # There are also another set of options with names corresponding to various class methods. The methods in question are those that let you set a class-wide default, and the options override the defaults on a request-by-request basis. Those options are:
98
+ # * :+base_uri+: see HTTParty::ClassMethods.base_uri.
99
+ # * :+basic_auth+: see HTTParty::ClassMethods.basic_auth. Only one of :+basic_auth+ and :+digest_auth+ can be used at a time; if you try using both, you'll get an ArgumentError.
100
+ # * :+debug_output+: see HTTParty::ClassMethods.debug_output.
101
+ # * :+digest_auth+: see HTTParty::ClassMethods.digest_auth. Only one of :+basic_auth+ and :+digest_auth+ can be used at a time; if you try using both, you'll get an ArgumentError.
102
+ # * :+format+: see HTTParty::ClassMethods.format.
103
+ # * :+headers+: see HTTParty::ClassMethods.headers. Must be a an object which responds to #to_hash.
104
+ # * :+maintain_method_across_redirects+: see HTTParty::ClassMethods.maintain_method_across_redirects.
105
+ # * :+no_follow+: see HTTParty::ClassMethods.no_follow.
106
+ # * :+parser+: see HTTParty::ClassMethods.parser.
107
+ # * :+uri_adapter+: see HTTParty::ClassMethods.uri_adapter
108
+ # * :+connection_adapter+: see HTTParty::ClassMethods.connection_adapter.
109
+ # * :+pem+: see HTTParty::ClassMethods.pem.
110
+ # * :+query_string_normalizer+: see HTTParty::ClassMethods.query_string_normalizer
111
+ # * :+ssl_ca_file+: see HTTParty::ClassMethods.ssl_ca_file.
112
+ # * :+ssl_ca_path+: see HTTParty::ClassMethods.ssl_ca_path.
113
+ #
114
+ # source://httparty//lib/httparty.rb#64
115
+ module HTTParty::ClassMethods
116
+ # Allows setting a base uri to be used for each request.
117
+ # Will normalize uri to include http, etc.
118
+ #
119
+ # class Foo
120
+ # include HTTParty
121
+ # base_uri 'twitter.com'
122
+ # end
123
+ #
124
+ # source://httparty//lib/httparty.rb#107
125
+ def base_uri(uri = T.unsafe(nil)); end
126
+
127
+ # Allows setting basic authentication username and password.
128
+ #
129
+ # class Foo
130
+ # include HTTParty
131
+ # basic_auth 'username', 'password'
132
+ # end
133
+ #
134
+ # source://httparty//lib/httparty.rb#118
135
+ def basic_auth(u, p); end
136
+
137
+ # source://httparty//lib/httparty.rb#589
138
+ def build_request(http_method, path, options = T.unsafe(nil)); end
139
+
140
+ # Allows setting of SSL ciphers to use. This only works in Ruby 1.9+.
141
+ # You can get a list of valid specific ciphers from OpenSSL::Cipher.ciphers.
142
+ # You also can specify a cipher suite here, listed here at openssl.org:
143
+ # http://www.openssl.org/docs/apps/ciphers.html#CIPHER_SUITE_NAMES
144
+ #
145
+ # class Foo
146
+ # include HTTParty
147
+ # ciphers "RC4-SHA"
148
+ # end
149
+ #
150
+ # source://httparty//lib/httparty.rb#424
151
+ def ciphers(cipher_names); end
152
+
153
+ # Allows setting a custom connection_adapter for the http connections
154
+ #
155
+ # @example
156
+ # class Foo
157
+ # include HTTParty
158
+ # connection_adapter Proc.new {|uri, options| ... }
159
+ # end
160
+ # @example provide optional configuration for your connection_adapter
161
+ # class Foo
162
+ # include HTTParty
163
+ # connection_adapter Proc.new {|uri, options| ... }, {foo: :bar}
164
+ # end
165
+ # @see HTTParty::ConnectionAdapter
166
+ #
167
+ # source://httparty//lib/httparty.rb#499
168
+ def connection_adapter(custom_adapter = T.unsafe(nil), options = T.unsafe(nil)); end
169
+
170
+ # @raise [ArgumentError]
171
+ #
172
+ # source://httparty//lib/httparty.rb#241
173
+ def cookies(h = T.unsafe(nil)); end
174
+
175
+ # Perform a COPY request to a path
176
+ #
177
+ # source://httparty//lib/httparty.rb#561
178
+ def copy(path, options = T.unsafe(nil), &block); end
179
+
180
+ # Set an output stream for debugging, defaults to $stderr.
181
+ # The output stream is passed on to Net::HTTP#set_debug_output.
182
+ #
183
+ # class Foo
184
+ # include HTTParty
185
+ # debug_output $stderr
186
+ # end
187
+ #
188
+ # source://httparty//lib/httparty.rb#221
189
+ def debug_output(stream = T.unsafe(nil)); end
190
+
191
+ # Returns the value of attribute default_options.
192
+ #
193
+ # source://httparty//lib/httparty.rb#596
194
+ def default_options; end
195
+
196
+ # Allows setting default parameters to be appended to each request.
197
+ # Great for api keys and such.
198
+ #
199
+ # class Foo
200
+ # include HTTParty
201
+ # default_params api_key: 'secret', another: 'foo'
202
+ # end
203
+ #
204
+ # @raise [ArgumentError]
205
+ #
206
+ # source://httparty//lib/httparty.rb#161
207
+ def default_params(h = T.unsafe(nil)); end
208
+
209
+ # Allows setting a default timeout for all HTTP calls
210
+ # Timeout is specified in seconds.
211
+ #
212
+ # class Foo
213
+ # include HTTParty
214
+ # default_timeout 10
215
+ # end
216
+ #
217
+ # source://httparty//lib/httparty.rb#174
218
+ def default_timeout(value); end
219
+
220
+ # Perform a DELETE request to a path
221
+ #
222
+ # source://httparty//lib/httparty.rb#551
223
+ def delete(path, options = T.unsafe(nil), &block); end
224
+
225
+ # Allows setting digest authentication username and password.
226
+ #
227
+ # class Foo
228
+ # include HTTParty
229
+ # digest_auth 'username', 'password'
230
+ # end
231
+ #
232
+ # source://httparty//lib/httparty.rb#128
233
+ def digest_auth(u, p); end
234
+
235
+ # Do not send rails style query strings.
236
+ # Specifically, don't use bracket notation when sending an array
237
+ #
238
+ # For a query:
239
+ # get '/', query: {selected_ids: [1,2,3]}
240
+ #
241
+ # The default query string looks like this:
242
+ # /?selected_ids[]=1&selected_ids[]=2&selected_ids[]=3
243
+ #
244
+ # Call `disable_rails_query_string_format` to transform the query string
245
+ # into:
246
+ # /?selected_ids=1&selected_ids=2&selected_ids=3
247
+ #
248
+ # @example
249
+ # class Foo
250
+ # include HTTParty
251
+ # disable_rails_query_string_format
252
+ # end
253
+ #
254
+ # source://httparty//lib/httparty.rb#150
255
+ def disable_rails_query_string_format; end
256
+
257
+ # Proceed to the location header when an HTTP response dictates a redirect.
258
+ # Redirects are always followed by default.
259
+ #
260
+ # @example
261
+ # class Foo
262
+ # include HTTParty
263
+ # base_uri 'http://google.com'
264
+ # follow_redirects true
265
+ # end
266
+ #
267
+ # source://httparty//lib/httparty.rb#255
268
+ def follow_redirects(value = T.unsafe(nil)); end
269
+
270
+ # Allows setting the format with which to parse.
271
+ # Must be one of the allowed formats ie: json, xml
272
+ #
273
+ # class Foo
274
+ # include HTTParty
275
+ # format :json
276
+ # end
277
+ #
278
+ # source://httparty//lib/httparty.rb#266
279
+ def format(f = T.unsafe(nil)); end
280
+
281
+ # Allows making a get request to a url.
282
+ #
283
+ # class Foo
284
+ # include HTTParty
285
+ # end
286
+ #
287
+ # # Simple get with full url
288
+ # Foo.get('http://foo.com/resource.json')
289
+ #
290
+ # # Simple get with full url and query parameters
291
+ # # ie: http://foo.com/resource.json?limit=10
292
+ # Foo.get('http://foo.com/resource.json', query: {limit: 10})
293
+ #
294
+ # source://httparty//lib/httparty.rb#520
295
+ def get(path, options = T.unsafe(nil), &block); end
296
+
297
+ # Perform a HEAD request to a path
298
+ #
299
+ # source://httparty//lib/httparty.rb#566
300
+ def head(path, options = T.unsafe(nil), &block); end
301
+
302
+ # Allows setting HTTP headers to be used for each request.
303
+ #
304
+ # class Foo
305
+ # include HTTParty
306
+ # headers 'Accept' => 'text/html'
307
+ # end
308
+ #
309
+ # source://httparty//lib/httparty.rb#231
310
+ def headers(h = T.unsafe(nil)); end
311
+
312
+ # Allows setting http proxy information to be used
313
+ #
314
+ # class Foo
315
+ # include HTTParty
316
+ # http_proxy 'http://foo.com', 80, 'user', 'pass'
317
+ # end
318
+ #
319
+ # source://httparty//lib/httparty.rb#93
320
+ def http_proxy(addr = T.unsafe(nil), port = T.unsafe(nil), user = T.unsafe(nil), pass = T.unsafe(nil)); end
321
+
322
+ # source://httparty//lib/httparty.rb#581
323
+ def lock(path, options = T.unsafe(nil), &block); end
324
+
325
+ # Turns on logging
326
+ #
327
+ # class Foo
328
+ # include HTTParty
329
+ # logger Logger.new('http_logger'), :info, :apache
330
+ # end
331
+ #
332
+ # source://httparty//lib/httparty.rb#71
333
+ def logger(logger, level = T.unsafe(nil), format = T.unsafe(nil)); end
334
+
335
+ # Declare that you wish to maintain the chosen HTTP method across redirects.
336
+ # The default behavior is to follow redirects via the GET method, except
337
+ # if you are making a HEAD request, in which case the default is to
338
+ # follow all redirects with HEAD requests.
339
+ # If you wish to maintain the original method, you can set this option to true.
340
+ #
341
+ # @example
342
+ # class Foo
343
+ # include HTTParty
344
+ # base_uri 'http://google.com'
345
+ # maintain_method_across_redirects true
346
+ # end
347
+ #
348
+ # source://httparty//lib/httparty.rb#312
349
+ def maintain_method_across_redirects(value = T.unsafe(nil)); end
350
+
351
+ # Perform a MKCOL request to a path
352
+ #
353
+ # source://httparty//lib/httparty.rb#577
354
+ def mkcol(path, options = T.unsafe(nil), &block); end
355
+
356
+ # Perform a MOVE request to a path
357
+ #
358
+ # source://httparty//lib/httparty.rb#556
359
+ def move(path, options = T.unsafe(nil), &block); end
360
+
361
+ # Declare whether or not to follow redirects. When true, an
362
+ # {HTTParty::RedirectionTooDeep} error will raise upon encountering a
363
+ # redirect. You can then gain access to the response object via
364
+ # HTTParty::RedirectionTooDeep#response.
365
+ #
366
+ # @example
367
+ # class Foo
368
+ # include HTTParty
369
+ # base_uri 'http://google.com'
370
+ # no_follow true
371
+ # end
372
+ #
373
+ # begin
374
+ # Foo.get('/')
375
+ # rescue HTTParty::RedirectionTooDeep => e
376
+ # puts e.response.body
377
+ # end
378
+ # @see HTTParty::ResponseError#response
379
+ #
380
+ # source://httparty//lib/httparty.rb#295
381
+ def no_follow(value = T.unsafe(nil)); end
382
+
383
+ # Allows setting a default open_timeout for all HTTP calls in seconds
384
+ #
385
+ # class Foo
386
+ # include HTTParty
387
+ # open_timeout 10
388
+ # end
389
+ #
390
+ # source://httparty//lib/httparty.rb#185
391
+ def open_timeout(value); end
392
+
393
+ # Perform an OPTIONS request to a path
394
+ #
395
+ # source://httparty//lib/httparty.rb#572
396
+ def options(path, options = T.unsafe(nil), &block); end
397
+
398
+ # Allows setting a custom parser for the response.
399
+ #
400
+ # class Foo
401
+ # include HTTParty
402
+ # parser Proc.new {|data| ...}
403
+ # end
404
+ #
405
+ # source://httparty//lib/httparty.rb#464
406
+ def parser(custom_parser = T.unsafe(nil)); end
407
+
408
+ # Perform a PATCH request to a path
409
+ #
410
+ # source://httparty//lib/httparty.rb#541
411
+ def patch(path, options = T.unsafe(nil), &block); end
412
+
413
+ # Allows setting a PEM file to be used
414
+ #
415
+ # class Foo
416
+ # include HTTParty
417
+ # pem File.read('/home/user/my.pem'), "optional password"
418
+ # end
419
+ #
420
+ # source://httparty//lib/httparty.rb#340
421
+ def pem(pem_contents, password = T.unsafe(nil)); end
422
+
423
+ # Allows setting a PKCS12 file to be used
424
+ #
425
+ # class Foo
426
+ # include HTTParty
427
+ # pkcs12 File.read('/home/user/my.p12'), "password"
428
+ # end
429
+ #
430
+ # source://httparty//lib/httparty.rb#351
431
+ def pkcs12(p12_contents, password); end
432
+
433
+ # Allows making a post request to a url.
434
+ #
435
+ # class Foo
436
+ # include HTTParty
437
+ # end
438
+ #
439
+ # # Simple post with full url and setting the body
440
+ # Foo.post('http://foo.com/resources', body: {bar: 'baz'})
441
+ #
442
+ # # Simple post with full url using :query option,
443
+ # # which appends the parameters to the URI.
444
+ # Foo.post('http://foo.com/resources', query: {bar: 'baz'})
445
+ #
446
+ # source://httparty//lib/httparty.rb#536
447
+ def post(path, options = T.unsafe(nil), &block); end
448
+
449
+ # Perform a PUT request to a path
450
+ #
451
+ # source://httparty//lib/httparty.rb#546
452
+ def put(path, options = T.unsafe(nil), &block); end
453
+
454
+ # Override the way query strings are normalized.
455
+ # Helpful for overriding the default rails normalization of Array queries.
456
+ #
457
+ # For a query:
458
+ # get '/', query: {selected_ids: [1,2,3]}
459
+ #
460
+ # The default query string normalizer returns:
461
+ # /?selected_ids[]=1&selected_ids[]=2&selected_ids[]=3
462
+ #
463
+ # Let's change it to this:
464
+ # /?selected_ids=1&selected_ids=2&selected_ids=3
465
+ #
466
+ # Pass a Proc to the query normalizer which accepts the yielded query.
467
+ #
468
+ # @example Modifying Array query strings
469
+ # class ServiceWrapper
470
+ # include HTTParty
471
+ #
472
+ # query_string_normalizer proc { |query|
473
+ # query.map do |key, value|
474
+ # value.map {|v| "#{key}=#{v}"}
475
+ # end.join('&')
476
+ # }
477
+ # end
478
+ # @param normalizer [Proc] custom query string normalizer.
479
+ # @yield [Hash, String] query string
480
+ # @yieldreturn [Array] an array that will later be joined with '&'
481
+ #
482
+ # source://httparty//lib/httparty.rb#384
483
+ def query_string_normalizer(normalizer); end
484
+
485
+ # Raises HTTParty::ResponseError if response's code matches this statuses
486
+ #
487
+ # class Foo
488
+ # include HTTParty
489
+ # raise_on [404, 500, '5[0-9]*']
490
+ # end
491
+ #
492
+ # source://httparty//lib/httparty.rb#83
493
+ def raise_on(codes = T.unsafe(nil)); end
494
+
495
+ # Allows setting a default read_timeout for all HTTP calls in seconds
496
+ #
497
+ # class Foo
498
+ # include HTTParty
499
+ # read_timeout 10
500
+ # end
501
+ #
502
+ # source://httparty//lib/httparty.rb#196
503
+ def read_timeout(value); end
504
+
505
+ # Declare that you wish to resend the full HTTP request across redirects,
506
+ # even on redirects that should logically become GET requests.
507
+ # A 303 redirect in HTTP signifies that the redirected url should normally
508
+ # retrieved using a GET request, for instance, it is the output of a previous
509
+ # POST. maintain_method_across_redirects respects this behavior, but you
510
+ # can force HTTParty to resend_on_redirect even on 303 responses.
511
+ #
512
+ # @example
513
+ # class Foo
514
+ # include HTTParty
515
+ # base_uri 'http://google.com'
516
+ # resend_on_redirect
517
+ # end
518
+ #
519
+ # source://httparty//lib/httparty.rb#330
520
+ def resend_on_redirect(value = T.unsafe(nil)); end
521
+
522
+ # Deactivate automatic decompression of the response body.
523
+ # This will require you to explicitly handle body decompression
524
+ # by inspecting the Content-Encoding response header.
525
+ #
526
+ # Refer to docs/README.md "HTTP Compression" section for
527
+ # further details.
528
+ #
529
+ # @example
530
+ # class Foo
531
+ # include HTTParty
532
+ # skip_decompression
533
+ # end
534
+ #
535
+ # source://httparty//lib/httparty.rb#411
536
+ def skip_decompression(value = T.unsafe(nil)); end
537
+
538
+ # Allows setting an OpenSSL certificate authority file. The file
539
+ # should contain one or more certificates in PEM format.
540
+ #
541
+ # Setting this option enables certificate verification. All
542
+ # certificates along a chain must be available in ssl_ca_file or
543
+ # ssl_ca_path for verification to succeed.
544
+ #
545
+ #
546
+ # class Foo
547
+ # include HTTParty
548
+ # ssl_ca_file '/etc/ssl/certs/ca-certificates.crt'
549
+ # end
550
+ #
551
+ # source://httparty//lib/httparty.rb#440
552
+ def ssl_ca_file(path); end
553
+
554
+ # Allows setting an OpenSSL certificate authority path (directory).
555
+ #
556
+ # Setting this option enables certificate verification. All
557
+ # certificates along a chain must be available in ssl_ca_file or
558
+ # ssl_ca_path for verification to succeed.
559
+ #
560
+ # class Foo
561
+ # include HTTParty
562
+ # ssl_ca_path '/etc/ssl/certs/'
563
+ # end
564
+ #
565
+ # source://httparty//lib/httparty.rb#454
566
+ def ssl_ca_path(path); end
567
+
568
+ # Allows setting of SSL version to use. This only works in Ruby 1.9+.
569
+ # You can get a list of valid versions from OpenSSL::SSL::SSLContext::METHODS.
570
+ #
571
+ # class Foo
572
+ # include HTTParty
573
+ # ssl_version :SSLv3
574
+ # end
575
+ #
576
+ # source://httparty//lib/httparty.rb#395
577
+ def ssl_version(version); end
578
+
579
+ # source://httparty//lib/httparty.rb#585
580
+ def unlock(path, options = T.unsafe(nil), &block); end
581
+
582
+ # Allows setting a custom URI adapter.
583
+ #
584
+ # class Foo
585
+ # include HTTParty
586
+ # uri_adapter Addressable::URI
587
+ # end
588
+ #
589
+ # @raise [ArgumentError]
590
+ #
591
+ # source://httparty//lib/httparty.rb#479
592
+ def uri_adapter(uri_adapter); end
593
+
594
+ # Allows setting a default write_timeout for all HTTP calls in seconds
595
+ # Supported by Ruby > 2.6.0
596
+ #
597
+ # class Foo
598
+ # include HTTParty
599
+ # write_timeout 10
600
+ # end
601
+ #
602
+ # source://httparty//lib/httparty.rb#208
603
+ def write_timeout(value); end
604
+
605
+ private
606
+
607
+ # source://httparty//lib/httparty.rb#604
608
+ def ensure_method_maintained_across_redirects(options); end
609
+
610
+ # source://httparty//lib/httparty.rb#610
611
+ def perform_request(http_method, path, options, &block); end
612
+
613
+ # source://httparty//lib/httparty.rb#614
614
+ def process_cookies(options); end
615
+
616
+ # source://httparty//lib/httparty.rb#620
617
+ def validate_format; end
618
+
619
+ # @raise [ArgumentError]
620
+ #
621
+ # source://httparty//lib/httparty.rb#600
622
+ def validate_timeout_argument(timeout_type, value); end
623
+ end
624
+
625
+ # Default connection adapter that returns a new Net::HTTP each time
626
+ #
627
+ # == Custom Connection Factories
628
+ #
629
+ # If you like to implement your own connection adapter, subclassing
630
+ # HTTParty::ConnectionAdapter will make it easier. Just override
631
+ # the #connection method. The uri and options attributes will have
632
+ # all the info you need to construct your http connection. Whatever
633
+ # you return from your connection method needs to adhere to the
634
+ # Net::HTTP interface as this is what HTTParty expects.
635
+ #
636
+ # === Configuration
637
+ # There is lots of configuration data available for your connection adapter
638
+ # in the #options attribute. It is up to you to interpret them within your
639
+ # connection adapter. Take a look at the implementation of
640
+ # HTTParty::ConnectionAdapter#connection for examples of how they are used.
641
+ # The keys used in options are
642
+ # * :+timeout+: timeout in seconds
643
+ # * :+open_timeout+: http connection open_timeout in seconds, overrides timeout if set
644
+ # * :+read_timeout+: http connection read_timeout in seconds, overrides timeout if set
645
+ # * :+write_timeout+: http connection write_timeout in seconds, overrides timeout if set (Ruby >= 2.6.0 required)
646
+ # * :+debug_output+: see HTTParty::ClassMethods.debug_output.
647
+ # * :+cert_store+: contains certificate data. see method 'attach_ssl_certificates'
648
+ # * :+pem+: contains pem client certificate data. see method 'attach_ssl_certificates'
649
+ # * :+p12+: contains PKCS12 client client certificate data. see method 'attach_ssl_certificates'
650
+ # * :+verify+: verify the server’s certificate against the ca certificate.
651
+ # * :+verify_peer+: set to false to turn off server verification but still send client certificate
652
+ # * :+ssl_ca_file+: see HTTParty::ClassMethods.ssl_ca_file.
653
+ # * :+ssl_ca_path+: see HTTParty::ClassMethods.ssl_ca_path.
654
+ # * :+ssl_version+: SSL versions to allow. see method 'attach_ssl_certificates'
655
+ # * :+ciphers+: The list of SSL ciphers to support
656
+ # * :+connection_adapter_options+: contains the hash you passed to HTTParty.connection_adapter when you configured your connection adapter
657
+ # * :+local_host+: The local address to bind to
658
+ # * :+local_port+: The local port to bind to
659
+ # * :+http_proxyaddr+: HTTP Proxy address
660
+ # * :+http_proxyport+: HTTP Proxy port
661
+ # * :+http_proxyuser+: HTTP Proxy user
662
+ # * :+http_proxypass+: HTTP Proxy password
663
+ #
664
+ # === Inherited methods
665
+ # * :+clean_host+: Method used to sanitize host names
666
+ #
667
+ # @example log the uri and options
668
+ # class LoggingConnectionAdapter < HTTParty::ConnectionAdapter
669
+ # def connection
670
+ # puts uri
671
+ # puts options
672
+ # Net::HTTP.new(uri)
673
+ # end
674
+ # end
675
+ # @example count number of http calls
676
+ # class CountingConnectionAdapter < HTTParty::ConnectionAdapter
677
+ # @@count = 0
678
+ #
679
+ # self.count
680
+ # @@count
681
+ # end
682
+ #
683
+ # def connection
684
+ # self.count += 1
685
+ # super
686
+ # end
687
+ # end
688
+ #
689
+ # source://httparty//lib/httparty/connection_adapter.rb#69
690
+ class HTTParty::ConnectionAdapter
691
+ # @raise [ArgumentError]
692
+ # @return [ConnectionAdapter] a new instance of ConnectionAdapter
693
+ #
694
+ # source://httparty//lib/httparty/connection_adapter.rb#91
695
+ def initialize(uri, options = T.unsafe(nil)); end
696
+
697
+ # source://httparty//lib/httparty/connection_adapter.rb#99
698
+ def connection; end
699
+
700
+ # Returns the value of attribute options.
701
+ #
702
+ # source://httparty//lib/httparty/connection_adapter.rb#89
703
+ def options; end
704
+
705
+ # Returns the value of attribute uri.
706
+ #
707
+ # source://httparty//lib/httparty/connection_adapter.rb#89
708
+ def uri; end
709
+
710
+ private
711
+
712
+ # @return [Boolean]
713
+ #
714
+ # source://httparty//lib/httparty/connection_adapter.rb#169
715
+ def add_max_retries?(max_retries); end
716
+
717
+ # @return [Boolean]
718
+ #
719
+ # source://httparty//lib/httparty/connection_adapter.rb#165
720
+ def add_timeout?(timeout); end
721
+
722
+ # source://httparty//lib/httparty/connection_adapter.rb#189
723
+ def attach_ssl_certificates(http, options); end
724
+
725
+ # source://httparty//lib/httparty/connection_adapter.rb#173
726
+ def clean_host(host); end
727
+
728
+ # @return [Boolean]
729
+ #
730
+ # source://httparty//lib/httparty/connection_adapter.rb#181
731
+ def ssl_implied?(uri); end
732
+
733
+ # source://httparty//lib/httparty/connection_adapter.rb#177
734
+ def strip_ipv6_brackets(host); end
735
+
736
+ # @return [Boolean]
737
+ #
738
+ # source://httparty//lib/httparty/connection_adapter.rb#185
739
+ def verify_ssl_certificate?; end
740
+
741
+ class << self
742
+ # Public
743
+ #
744
+ # source://httparty//lib/httparty/connection_adapter.rb#79
745
+ def call(uri, options); end
746
+
747
+ # source://httparty//lib/httparty/connection_adapter.rb#83
748
+ def default_cert_store; end
749
+ end
750
+ end
751
+
752
+ # source://httparty//lib/httparty/connection_adapter.rb#73
753
+ HTTParty::ConnectionAdapter::OPTION_DEFAULTS = T.let(T.unsafe(nil), Hash)
754
+
755
+ # Private: Regex used to strip brackets from IPv6 URIs.
756
+ #
757
+ # source://httparty//lib/httparty/connection_adapter.rb#71
758
+ HTTParty::ConnectionAdapter::StripIpv6BracketsRegex = T.let(T.unsafe(nil), Regexp)
759
+
760
+ # source://httparty//lib/httparty/cookie_hash.rb#3
761
+ class HTTParty::CookieHash < ::Hash
762
+ # source://httparty//lib/httparty/cookie_hash.rb#6
763
+ def add_cookies(data); end
764
+
765
+ # source://httparty//lib/httparty/cookie_hash.rb#20
766
+ def to_cookie_string; end
767
+ end
768
+
769
+ # source://httparty//lib/httparty/cookie_hash.rb#4
770
+ HTTParty::CookieHash::CLIENT_COOKIES = T.let(T.unsafe(nil), Array)
771
+
772
+ # Decompresses the response body based on the Content-Encoding header.
773
+ #
774
+ # Net::HTTP automatically decompresses Content-Encoding values "gzip" and "deflate".
775
+ # This class will handle "br" (Brotli) and "compress" (LZW) if the requisite
776
+ # gems are installed. Otherwise, it returns nil if the body data cannot be
777
+ # decompressed.
778
+ #
779
+ # @abstract Read the HTTP Compression section for more information.
780
+ #
781
+ # source://httparty//lib/httparty/decompressor.rb#12
782
+ class HTTParty::Decompressor
783
+ # @param body [String] - the response body of the request
784
+ # @param encoding [Symbol] - the Content-Encoding algorithm used to encode the body
785
+ # @return [Decompressor] a new instance of Decompressor
786
+ #
787
+ # source://httparty//lib/httparty/decompressor.rb#34
788
+ def initialize(body, encoding); end
789
+
790
+ # The response body of the request
791
+ #
792
+ # @return [String]
793
+ #
794
+ # source://httparty//lib/httparty/decompressor.rb#26
795
+ def body; end
796
+
797
+ # Perform decompression on the response body
798
+ #
799
+ # @return [String] the decompressed body
800
+ # @return [nil] when the response body is nil or cannot decompressed
801
+ #
802
+ # source://httparty//lib/httparty/decompressor.rb#42
803
+ def decompress; end
804
+
805
+ # The Content-Encoding algorithm used to encode the body
806
+ #
807
+ # @return [Symbol] e.g. :gzip
808
+ #
809
+ # source://httparty//lib/httparty/decompressor.rb#30
810
+ def encoding; end
811
+
812
+ protected
813
+
814
+ # source://httparty//lib/httparty/decompressor.rb#72
815
+ def brotli; end
816
+
817
+ # source://httparty//lib/httparty/decompressor.rb#59
818
+ def decompress_supported_encoding; end
819
+
820
+ # source://httparty//lib/httparty/decompressor.rb#81
821
+ def lzw; end
822
+
823
+ # source://httparty//lib/httparty/decompressor.rb#68
824
+ def none; end
825
+
826
+ # @return [Boolean]
827
+ #
828
+ # source://httparty//lib/httparty/decompressor.rb#55
829
+ def supports_encoding?; end
830
+
831
+ # source://httparty//lib/httparty/decompressor.rb#93
832
+ def zstd; end
833
+ end
834
+
835
+ # "gzip" and "deflate" are handled by Net::HTTP
836
+ # hence they do not need to be handled by HTTParty
837
+ #
838
+ # source://httparty//lib/httparty/decompressor.rb#16
839
+ HTTParty::Decompressor::SupportedEncodings = T.let(T.unsafe(nil), Hash)
840
+
841
+ # Exception that is raised when request redirects and location header is present more than once
842
+ #
843
+ # source://httparty//lib/httparty/exceptions.rb#34
844
+ class HTTParty::DuplicateLocationHeader < ::HTTParty::ResponseError; end
845
+
846
+ # @abstract Exceptions raised by HTTParty inherit from Error
847
+ #
848
+ # source://httparty//lib/httparty/exceptions.rb#5
849
+ class HTTParty::Error < ::StandardError; end
850
+
851
+ # source://httparty//lib/httparty/hash_conversions.rb#6
852
+ module HTTParty::HashConversions
853
+ class << self
854
+ # source://httparty//lib/httparty/hash_conversions.rb#36
855
+ def normalize_keys(key, value); end
856
+
857
+ # @example normalize_param(:name, "Bob Jones") #=> "name=Bob%20Jones&"
858
+ # @param key [Object] The key for the param.
859
+ # @param value [Object] The value for the param.
860
+ # @return [String] This key value pair as a param
861
+ #
862
+ # source://httparty//lib/httparty/hash_conversions.rb#28
863
+ def normalize_param(key, value); end
864
+
865
+ # @example
866
+ # { name: "Bob",
867
+ # address: {
868
+ # street: '111 Ruby Ave.',
869
+ # city: 'Ruby Central',
870
+ # phones: ['111-111-1111', '222-222-2222']
871
+ # }
872
+ # }.to_params
873
+ # #=> "name=Bob&address[city]=Ruby Central&address[phones][]=111-111-1111&address[phones][]=222-222-2222&address[street]=111 Ruby Ave."
874
+ # @return [String] This hash as a query string
875
+ #
876
+ # source://httparty//lib/httparty/hash_conversions.rb#18
877
+ def to_params(hash); end
878
+ end
879
+ end
880
+
881
+ # source://httparty//lib/httparty/headers_processor.rb#4
882
+ class HTTParty::HeadersProcessor
883
+ # @return [HeadersProcessor] a new instance of HeadersProcessor
884
+ #
885
+ # source://httparty//lib/httparty/headers_processor.rb#7
886
+ def initialize(headers, options); end
887
+
888
+ # source://httparty//lib/httparty/headers_processor.rb#12
889
+ def call; end
890
+
891
+ # Returns the value of attribute headers.
892
+ #
893
+ # source://httparty//lib/httparty/headers_processor.rb#5
894
+ def headers; end
895
+
896
+ # Returns the value of attribute options.
897
+ #
898
+ # source://httparty//lib/httparty/headers_processor.rb#5
899
+ def options; end
900
+
901
+ private
902
+
903
+ # source://httparty//lib/httparty/headers_processor.rb#21
904
+ def process_dynamic_headers; end
905
+ end
906
+
907
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#4
908
+ module HTTParty::Logger
909
+ class << self
910
+ # @raise [HTTParty::Error]
911
+ #
912
+ # source://httparty//lib/httparty/logger/logger.rb#17
913
+ def add_formatter(name, formatter); end
914
+
915
+ # source://httparty//lib/httparty/logger/logger.rb#22
916
+ def build(logger, level, formatter); end
917
+
918
+ # source://httparty//lib/httparty/logger/logger.rb#9
919
+ def formatters; end
920
+ end
921
+ end
922
+
923
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#5
924
+ class HTTParty::Logger::ApacheFormatter
925
+ # @return [ApacheFormatter] a new instance of ApacheFormatter
926
+ #
927
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#10
928
+ def initialize(logger, level); end
929
+
930
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#15
931
+ def format(request, response); end
932
+
933
+ # Returns the value of attribute level.
934
+ #
935
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#8
936
+ def level; end
937
+
938
+ # Sets the attribute level
939
+ #
940
+ # @param value the value to set the attribute level to.
941
+ #
942
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#8
943
+ def level=(_arg0); end
944
+
945
+ # Returns the value of attribute logger.
946
+ #
947
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#8
948
+ def logger; end
949
+
950
+ # Sets the attribute logger
951
+ #
952
+ # @param value the value to set the attribute logger to.
953
+ #
954
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#8
955
+ def logger=(_arg0); end
956
+
957
+ private
958
+
959
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#42
960
+ def content_length; end
961
+
962
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#30
963
+ def current_time; end
964
+
965
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#34
966
+ def http_method; end
967
+
968
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#26
969
+ def message; end
970
+
971
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#38
972
+ def path; end
973
+
974
+ # Returns the value of attribute request.
975
+ #
976
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#24
977
+ def request; end
978
+
979
+ # Returns the value of attribute response.
980
+ #
981
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#24
982
+ def response; end
983
+ end
984
+
985
+ # source://httparty//lib/httparty/logger/apache_formatter.rb#6
986
+ HTTParty::Logger::ApacheFormatter::TAG_NAME = T.let(T.unsafe(nil), String)
987
+
988
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#5
989
+ class HTTParty::Logger::CurlFormatter
990
+ # @return [CurlFormatter] a new instance of CurlFormatter
991
+ #
992
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#12
993
+ def initialize(logger, level); end
994
+
995
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#18
996
+ def format(request, response); end
997
+
998
+ # Returns the value of attribute level.
999
+ #
1000
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#10
1001
+ def level; end
1002
+
1003
+ # Sets the attribute level
1004
+ #
1005
+ # @param value the value to set the attribute level to.
1006
+ #
1007
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#10
1008
+ def level=(_arg0); end
1009
+
1010
+ # Returns the value of attribute logger.
1011
+ #
1012
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#10
1013
+ def logger; end
1014
+
1015
+ # Sets the attribute logger
1016
+ #
1017
+ # @param value the value to set the attribute logger to.
1018
+ #
1019
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#10
1020
+ def logger=(_arg0); end
1021
+
1022
+ private
1023
+
1024
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#88
1025
+ def current_time; end
1026
+
1027
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#84
1028
+ def log(direction, line = T.unsafe(nil)); end
1029
+
1030
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#80
1031
+ def log_hash(hash); end
1032
+
1033
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#59
1034
+ def log_headers; end
1035
+
1036
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#66
1037
+ def log_query; end
1038
+
1039
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#33
1040
+ def log_request; end
1041
+
1042
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#41
1043
+ def log_response; end
1044
+
1045
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#73
1046
+ def log_response_headers; end
1047
+
1048
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#48
1049
+ def log_url; end
1050
+
1051
+ # Returns the value of attribute messages.
1052
+ #
1053
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#31
1054
+ def messages; end
1055
+
1056
+ # Sets the attribute messages
1057
+ #
1058
+ # @param value the value to set the attribute messages to.
1059
+ #
1060
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#31
1061
+ def messages=(_arg0); end
1062
+
1063
+ # Returns the value of attribute request.
1064
+ #
1065
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#30
1066
+ def request; end
1067
+
1068
+ # Returns the value of attribute response.
1069
+ #
1070
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#30
1071
+ def response; end
1072
+ end
1073
+
1074
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#8
1075
+ HTTParty::Logger::CurlFormatter::IN = T.let(T.unsafe(nil), String)
1076
+
1077
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#7
1078
+ HTTParty::Logger::CurlFormatter::OUT = T.let(T.unsafe(nil), String)
1079
+
1080
+ # source://httparty//lib/httparty/logger/curl_formatter.rb#6
1081
+ HTTParty::Logger::CurlFormatter::TAG_NAME = T.let(T.unsafe(nil), String)
1082
+
1083
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#5
1084
+ class HTTParty::Logger::LogstashFormatter
1085
+ # @return [LogstashFormatter] a new instance of LogstashFormatter
1086
+ #
1087
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#10
1088
+ def initialize(logger, level); end
1089
+
1090
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#15
1091
+ def format(request, response); end
1092
+
1093
+ # Returns the value of attribute level.
1094
+ #
1095
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#8
1096
+ def level; end
1097
+
1098
+ # Sets the attribute level
1099
+ #
1100
+ # @param value the value to set the attribute level to.
1101
+ #
1102
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#8
1103
+ def level=(_arg0); end
1104
+
1105
+ # Returns the value of attribute logger.
1106
+ #
1107
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#8
1108
+ def logger; end
1109
+
1110
+ # Sets the attribute logger
1111
+ #
1112
+ # @param value the value to set the attribute logger to.
1113
+ #
1114
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#8
1115
+ def logger=(_arg0); end
1116
+
1117
+ private
1118
+
1119
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#57
1120
+ def content_length; end
1121
+
1122
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#45
1123
+ def current_time; end
1124
+
1125
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#49
1126
+ def http_method; end
1127
+
1128
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#26
1129
+ def logstash_message; end
1130
+
1131
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#41
1132
+ def message; end
1133
+
1134
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#53
1135
+ def path; end
1136
+
1137
+ # Returns the value of attribute request.
1138
+ #
1139
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#24
1140
+ def request; end
1141
+
1142
+ # Returns the value of attribute response.
1143
+ #
1144
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#24
1145
+ def response; end
1146
+ end
1147
+
1148
+ # source://httparty//lib/httparty/logger/logstash_formatter.rb#6
1149
+ HTTParty::Logger::LogstashFormatter::TAG_NAME = T.let(T.unsafe(nil), String)
1150
+
1151
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#4
1152
+ module HTTParty::ModuleInheritableAttributes
1153
+ mixes_in_class_methods ::HTTParty::ModuleInheritableAttributes::ClassMethods
1154
+
1155
+ class << self
1156
+ # borrowed from Rails 3.2 ActiveSupport
1157
+ #
1158
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#10
1159
+ def hash_deep_dup(hash); end
1160
+
1161
+ # @private
1162
+ #
1163
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#5
1164
+ def included(base); end
1165
+ end
1166
+ end
1167
+
1168
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#26
1169
+ module HTTParty::ModuleInheritableAttributes::ClassMethods
1170
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#38
1171
+ def inherited(subclass); end
1172
+
1173
+ # source://httparty//lib/httparty/module_inheritable_attributes.rb#27
1174
+ def mattr_inheritable(*args); end
1175
+ end
1176
+
1177
+ # The default parser used by HTTParty, supports xml, json, html, csv and
1178
+ # plain text.
1179
+ #
1180
+ # == Custom Parsers
1181
+ #
1182
+ # If you'd like to do your own custom parsing, subclassing HTTParty::Parser
1183
+ # will make that process much easier. There are a few different ways you can
1184
+ # utilize HTTParty::Parser as a superclass.
1185
+ #
1186
+ # @abstract Read the Custom Parsers section for more information.
1187
+ # @example Intercept the parsing for all formats
1188
+ # class SimpleParser < HTTParty::Parser
1189
+ # def parse
1190
+ # perform_parsing
1191
+ # end
1192
+ # end
1193
+ # @example Add the atom format and parsing method to the default parser
1194
+ # class AtomParsingIncluded < HTTParty::Parser
1195
+ # SupportedFormats.merge!(
1196
+ # {"application/atom+xml" => :atom}
1197
+ # )
1198
+ #
1199
+ # def atom
1200
+ # perform_atom_parsing
1201
+ # end
1202
+ # end
1203
+ # @example Only support the atom format
1204
+ # class ParseOnlyAtom < HTTParty::Parser
1205
+ # SupportedFormats = {"application/atom+xml" => :atom}
1206
+ #
1207
+ # def atom
1208
+ # perform_atom_parsing
1209
+ # end
1210
+ # end
1211
+ #
1212
+ # source://httparty//lib/httparty/parser.rb#41
1213
+ class HTTParty::Parser
1214
+ # @return [Parser] a new instance of Parser
1215
+ #
1216
+ # source://httparty//lib/httparty/parser.rb#97
1217
+ def initialize(body, format); end
1218
+
1219
+ # The response body of the request
1220
+ #
1221
+ # @return [String]
1222
+ #
1223
+ # source://httparty//lib/httparty/parser.rb#60
1224
+ def body; end
1225
+
1226
+ # The intended parsing format for the request
1227
+ #
1228
+ # @return [Symbol] e.g. :json
1229
+ #
1230
+ # source://httparty//lib/httparty/parser.rb#64
1231
+ def format; end
1232
+
1233
+ # @return [Object] the parsed body
1234
+ # @return [nil] when the response body is nil, an empty string, spaces only or "null"
1235
+ #
1236
+ # source://httparty//lib/httparty/parser.rb#104
1237
+ def parse; end
1238
+
1239
+ protected
1240
+
1241
+ # source://httparty//lib/httparty/parser.rb#132
1242
+ def csv; end
1243
+
1244
+ # source://httparty//lib/httparty/parser.rb#137
1245
+ def html; end
1246
+
1247
+ # source://httparty//lib/httparty/parser.rb#127
1248
+ def json; end
1249
+
1250
+ # source://httparty//lib/httparty/parser.rb#149
1251
+ def parse_supported_format; end
1252
+
1253
+ # source://httparty//lib/httparty/parser.rb#141
1254
+ def plain; end
1255
+
1256
+ # @return [Boolean]
1257
+ #
1258
+ # source://httparty//lib/httparty/parser.rb#145
1259
+ def supports_format?; end
1260
+
1261
+ # source://httparty//lib/httparty/parser.rb#120
1262
+ def xml; end
1263
+
1264
+ class << self
1265
+ # Instantiate the parser and call {#parse}.
1266
+ #
1267
+ # @param body [String] the response body
1268
+ # @param format [Symbol] the response format
1269
+ # @return parsed response
1270
+ #
1271
+ # source://httparty//lib/httparty/parser.rb#70
1272
+ def call(body, format); end
1273
+
1274
+ # @param mimetype [String] response MIME type
1275
+ # @return [Symbol]
1276
+ # @return [nil] mime type not supported
1277
+ #
1278
+ # source://httparty//lib/httparty/parser.rb#82
1279
+ def format_from_mimetype(mimetype); end
1280
+
1281
+ # @return [Hash] the SupportedFormats hash
1282
+ #
1283
+ # source://httparty//lib/httparty/parser.rb#75
1284
+ def formats; end
1285
+
1286
+ # @return [Array<Symbol>] list of supported formats
1287
+ #
1288
+ # source://httparty//lib/httparty/parser.rb#87
1289
+ def supported_formats; end
1290
+
1291
+ # @param format [Symbol] e.g. :json, :xml
1292
+ # @return [Boolean]
1293
+ #
1294
+ # source://httparty//lib/httparty/parser.rb#93
1295
+ def supports_format?(format); end
1296
+ end
1297
+ end
1298
+
1299
+ # source://httparty//lib/httparty/parser.rb#42
1300
+ HTTParty::Parser::SupportedFormats = T.let(T.unsafe(nil), Hash)
1301
+
1302
+ # source://httparty//lib/httparty/parser.rb#125
1303
+ HTTParty::Parser::UTF8_BOM = T.let(T.unsafe(nil), String)
1304
+
1305
+ # Exception that is raised when request has redirected too many times.
1306
+ # Calling {#response} returns the Net:HTTP response object.
1307
+ #
1308
+ # source://httparty//lib/httparty/exceptions.rb#31
1309
+ class HTTParty::RedirectionTooDeep < ::HTTParty::ResponseError; end
1310
+
1311
+ # source://httparty//lib/httparty/request/multipart_boundary.rb#6
1312
+ class HTTParty::Request
1313
+ # @return [Request] a new instance of Request
1314
+ #
1315
+ # source://httparty//lib/httparty/request.rb#61
1316
+ def initialize(http_method, path, o = T.unsafe(nil)); end
1317
+
1318
+ # source://httparty//lib/httparty/request.rb#187
1319
+ def _dump(_level); end
1320
+
1321
+ # source://httparty//lib/httparty/request.rb#128
1322
+ def base_uri; end
1323
+
1324
+ # source://httparty//lib/httparty/request.rb#146
1325
+ def connection_adapter; end
1326
+
1327
+ # source://httparty//lib/httparty/request.rb#138
1328
+ def format; end
1329
+
1330
+ # source://httparty//lib/httparty/request.rb#176
1331
+ def handle_unauthorized(&block); end
1332
+
1333
+ # Returns the value of attribute http_method.
1334
+ #
1335
+ # source://httparty//lib/httparty/request.rb#58
1336
+ def http_method; end
1337
+
1338
+ # Sets the attribute http_method
1339
+ #
1340
+ # @param value the value to set the attribute http_method to.
1341
+ #
1342
+ # source://httparty//lib/httparty/request.rb#58
1343
+ def http_method=(_arg0); end
1344
+
1345
+ # Returns the value of attribute last_response.
1346
+ #
1347
+ # source://httparty//lib/httparty/request.rb#58
1348
+ def last_response; end
1349
+
1350
+ # Sets the attribute last_response
1351
+ #
1352
+ # @param value the value to set the attribute last_response to.
1353
+ #
1354
+ # source://httparty//lib/httparty/request.rb#58
1355
+ def last_response=(_arg0); end
1356
+
1357
+ # Returns the value of attribute last_uri.
1358
+ #
1359
+ # source://httparty//lib/httparty/request.rb#58
1360
+ def last_uri; end
1361
+
1362
+ # Sets the attribute last_uri
1363
+ #
1364
+ # @param value the value to set the attribute last_uri to.
1365
+ #
1366
+ # source://httparty//lib/httparty/request.rb#58
1367
+ def last_uri=(_arg0); end
1368
+
1369
+ # Returns the value of attribute options.
1370
+ #
1371
+ # source://httparty//lib/httparty/request.rb#58
1372
+ def options; end
1373
+
1374
+ # Sets the attribute options
1375
+ #
1376
+ # @param value the value to set the attribute options to.
1377
+ #
1378
+ # source://httparty//lib/httparty/request.rb#58
1379
+ def options=(_arg0); end
1380
+
1381
+ # source://httparty//lib/httparty/request.rb#142
1382
+ def parser; end
1383
+
1384
+ # Returns the value of attribute path.
1385
+ #
1386
+ # source://httparty//lib/httparty/request.rb#59
1387
+ def path; end
1388
+
1389
+ # source://httparty//lib/httparty/request.rb#79
1390
+ def path=(uri); end
1391
+
1392
+ # source://httparty//lib/httparty/request.rb#150
1393
+ def perform(&block); end
1394
+
1395
+ # source://httparty//lib/httparty/request.rb#183
1396
+ def raw_body; end
1397
+
1398
+ # Returns the value of attribute redirect.
1399
+ #
1400
+ # source://httparty//lib/httparty/request.rb#58
1401
+ def redirect; end
1402
+
1403
+ # Sets the attribute redirect
1404
+ #
1405
+ # @param value the value to set the attribute redirect to.
1406
+ #
1407
+ # source://httparty//lib/httparty/request.rb#58
1408
+ def redirect=(_arg0); end
1409
+
1410
+ # source://httparty//lib/httparty/request.rb#92
1411
+ def request_uri(uri); end
1412
+
1413
+ # source://httparty//lib/httparty/request.rb#100
1414
+ def uri; end
1415
+
1416
+ private
1417
+
1418
+ # source://httparty//lib/httparty/request.rb#292
1419
+ def assume_utf16_is_big_endian; end
1420
+
1421
+ # source://httparty//lib/httparty/request.rb#380
1422
+ def capture_cookies(response); end
1423
+
1424
+ # source://httparty//lib/httparty/request.rb#348
1425
+ def check_duplicate_location_header; end
1426
+
1427
+ # Some Web Application Firewalls reject incoming GET requests that have a body
1428
+ # if we redirect, and the resulting verb is GET then we will clear the body that
1429
+ # may be left behind from the initiating request
1430
+ #
1431
+ # source://httparty//lib/httparty/request.rb#375
1432
+ def clear_body; end
1433
+
1434
+ # source://httparty//lib/httparty/request.rb#200
1435
+ def credentials; end
1436
+
1437
+ # source://httparty//lib/httparty/request.rb#421
1438
+ def decompress(body, encoding); end
1439
+
1440
+ # @return [Boolean]
1441
+ #
1442
+ # source://httparty//lib/httparty/request.rb#261
1443
+ def decompress_content?; end
1444
+
1445
+ # @return [Boolean]
1446
+ #
1447
+ # source://httparty//lib/httparty/request.rb#257
1448
+ def digest_auth?; end
1449
+
1450
+ # source://httparty//lib/httparty/request.rb#425
1451
+ def encode_text(text, content_type); end
1452
+
1453
+ # Uses the HTTP Content-Type header to determine the format of the
1454
+ # response It compares the MIME type returned to the types stored in the
1455
+ # SupportedFormats hash
1456
+ #
1457
+ # source://httparty//lib/httparty/request.rb#393
1458
+ def format_from_mimetype(mimetype); end
1459
+
1460
+ # source://httparty//lib/httparty/request.rb#341
1461
+ def handle_host_redirection; end
1462
+
1463
+ # source://httparty//lib/httparty/request.rb#317
1464
+ def handle_redirection(&block); end
1465
+
1466
+ # source://httparty//lib/httparty/request.rb#296
1467
+ def handle_response(raw_body, &block); end
1468
+
1469
+ # source://httparty//lib/httparty/request.rb#196
1470
+ def http; end
1471
+
1472
+ # source://httparty//lib/httparty/request.rb#212
1473
+ def normalize_query(query); end
1474
+
1475
+ # source://httparty//lib/httparty/request.rb#368
1476
+ def parse_response(body); end
1477
+
1478
+ # source://httparty//lib/httparty/request.rb#208
1479
+ def password; end
1480
+
1481
+ # @return [Boolean]
1482
+ #
1483
+ # source://httparty//lib/httparty/request.rb#409
1484
+ def post?; end
1485
+
1486
+ # source://httparty//lib/httparty/request.rb#277
1487
+ def query_string(uri); end
1488
+
1489
+ # source://httparty//lib/httparty/request.rb#220
1490
+ def query_string_normalizer; end
1491
+
1492
+ # @return [Boolean]
1493
+ #
1494
+ # source://httparty//lib/httparty/request.rb#269
1495
+ def response_has_digest_auth_challenge?; end
1496
+
1497
+ # @return [Boolean]
1498
+ #
1499
+ # source://httparty//lib/httparty/request.rb#359
1500
+ def response_redirects?; end
1501
+
1502
+ # @return [Boolean]
1503
+ #
1504
+ # source://httparty//lib/httparty/request.rb#265
1505
+ def response_unauthorized?; end
1506
+
1507
+ # @return [Boolean]
1508
+ #
1509
+ # source://httparty//lib/httparty/request.rb#355
1510
+ def send_authorization_header?; end
1511
+
1512
+ # source://httparty//lib/httparty/request.rb#413
1513
+ def set_basic_auth_from_uri; end
1514
+
1515
+ # source://httparty//lib/httparty/request.rb#273
1516
+ def setup_digest_auth; end
1517
+
1518
+ # source://httparty//lib/httparty/request.rb#224
1519
+ def setup_raw_request; end
1520
+
1521
+ # source://httparty//lib/httparty/request.rb#204
1522
+ def username; end
1523
+
1524
+ # @raise [HTTParty::RedirectionTooDeep.new(last_response)]
1525
+ #
1526
+ # source://httparty//lib/httparty/request.rb#399
1527
+ def validate; end
1528
+
1529
+ class << self
1530
+ # source://httparty//lib/httparty/request.rb#49
1531
+ def _load(data); end
1532
+ end
1533
+ end
1534
+
1535
+ # source://httparty//lib/httparty/request/body.rb#7
1536
+ class HTTParty::Request::Body
1537
+ # @return [Body] a new instance of Body
1538
+ #
1539
+ # source://httparty//lib/httparty/request/body.rb#11
1540
+ def initialize(params, query_string_normalizer: T.unsafe(nil), force_multipart: T.unsafe(nil)); end
1541
+
1542
+ # source://httparty//lib/httparty/request/body.rb#25
1543
+ def boundary; end
1544
+
1545
+ # source://httparty//lib/httparty/request/body.rb#17
1546
+ def call; end
1547
+
1548
+ # @return [Boolean]
1549
+ #
1550
+ # source://httparty//lib/httparty/request/body.rb#29
1551
+ def multipart?; end
1552
+
1553
+ private
1554
+
1555
+ # source://httparty//lib/httparty/request/body.rb#83
1556
+ def content_body(object); end
1557
+
1558
+ # source://httparty//lib/httparty/request/body.rb#92
1559
+ def content_type(object); end
1560
+
1561
+ # @return [Boolean]
1562
+ #
1563
+ # source://httparty//lib/httparty/request/body.rb#71
1564
+ def file?(object); end
1565
+
1566
+ # source://httparty//lib/httparty/request/body.rb#99
1567
+ def file_name(object); end
1568
+
1569
+ # Returns the value of attribute force_multipart.
1570
+ #
1571
+ # source://httparty//lib/httparty/request/body.rb#103
1572
+ def force_multipart; end
1573
+
1574
+ # source://httparty//lib/httparty/request/body.rb#42
1575
+ def generate_multipart; end
1576
+
1577
+ # @return [Boolean]
1578
+ #
1579
+ # source://httparty//lib/httparty/request/body.rb#61
1580
+ def has_file?(value); end
1581
+
1582
+ # source://httparty//lib/httparty/request/body.rb#75
1583
+ def normalize_query(query); end
1584
+
1585
+ # Returns the value of attribute params.
1586
+ #
1587
+ # source://httparty//lib/httparty/request/body.rb#103
1588
+ def params; end
1589
+
1590
+ # Returns the value of attribute query_string_normalizer.
1591
+ #
1592
+ # source://httparty//lib/httparty/request/body.rb#103
1593
+ def query_string_normalizer; end
1594
+ end
1595
+
1596
+ # https://html.spec.whatwg.org/#multipart-form-data
1597
+ #
1598
+ # source://httparty//lib/httparty/request/body.rb#36
1599
+ HTTParty::Request::Body::MULTIPART_FORM_DATA_REPLACEMENT_TABLE = T.let(T.unsafe(nil), Hash)
1600
+
1601
+ # source://httparty//lib/httparty/request/body.rb#8
1602
+ HTTParty::Request::Body::NEWLINE = T.let(T.unsafe(nil), String)
1603
+
1604
+ # source://httparty//lib/httparty/request.rb#36
1605
+ HTTParty::Request::JSON_API_QUERY_STRING_NORMALIZER = T.let(T.unsafe(nil), Proc)
1606
+
1607
+ # source://httparty//lib/httparty/request/multipart_boundary.rb#7
1608
+ class HTTParty::Request::MultipartBoundary
1609
+ class << self
1610
+ # source://httparty//lib/httparty/request/multipart_boundary.rb#8
1611
+ def generate; end
1612
+ end
1613
+ end
1614
+
1615
+ # source://httparty//lib/httparty/request.rb#24
1616
+ HTTParty::Request::NON_RAILS_QUERY_STRING_NORMALIZER = T.let(T.unsafe(nil), Proc)
1617
+
1618
+ # source://httparty//lib/httparty/request.rb#7
1619
+ HTTParty::Request::SupportedHTTPMethods = T.let(T.unsafe(nil), Array)
1620
+
1621
+ # source://httparty//lib/httparty/request.rb#22
1622
+ HTTParty::Request::SupportedURISchemes = T.let(T.unsafe(nil), Array)
1623
+
1624
+ # source://httparty//lib/httparty/response.rb#4
1625
+ class HTTParty::Response
1626
+ # @return [Response] a new instance of Response
1627
+ #
1628
+ # source://httparty//lib/httparty/response.rb#17
1629
+ def initialize(request, response, parsed_block, options = T.unsafe(nil)); end
1630
+
1631
+ # source://httparty//lib/httparty/response.rb#119
1632
+ def _dump(_level); end
1633
+
1634
+ # source://httparty//lib/httparty/response.rb#64
1635
+ def accepted?; end
1636
+
1637
+ # source://httparty//lib/httparty/response.rb#64
1638
+ def already_reported?; end
1639
+
1640
+ # source://httparty//lib/httparty/response.rb#64
1641
+ def bad_gateway?; end
1642
+
1643
+ # source://httparty//lib/httparty/response.rb#64
1644
+ def bad_request?; end
1645
+
1646
+ # Returns the value of attribute body.
1647
+ #
1648
+ # source://httparty//lib/httparty/response.rb#15
1649
+ def body; end
1650
+
1651
+ # source://httparty//lib/httparty/response.rb#64
1652
+ def client_error?; end
1653
+
1654
+ # source://httparty//lib/httparty/response.rb#40
1655
+ def code; end
1656
+
1657
+ # source://httparty//lib/httparty/response.rb#64
1658
+ def conflict?; end
1659
+
1660
+ # source://httparty//lib/httparty/response.rb#64
1661
+ def continue?; end
1662
+
1663
+ # source://httparty//lib/httparty/response.rb#64
1664
+ def created?; end
1665
+
1666
+ # source://httparty//lib/httparty/response.rb#104
1667
+ def display(port = T.unsafe(nil)); end
1668
+
1669
+ # source://httparty//lib/httparty/response.rb#64
1670
+ def early_hints?; end
1671
+
1672
+ # source://httparty//lib/httparty/response.rb#64
1673
+ def expectation_failed?; end
1674
+
1675
+ # source://httparty//lib/httparty/response.rb#64
1676
+ def failed_dependency?; end
1677
+
1678
+ # source://httparty//lib/httparty/response.rb#64
1679
+ def forbidden?; end
1680
+
1681
+ # source://httparty//lib/httparty/response.rb#64
1682
+ def found?; end
1683
+
1684
+ # source://httparty//lib/httparty/response.rb#64
1685
+ def gateway_time_out?; end
1686
+
1687
+ # source://httparty//lib/httparty/response.rb#64
1688
+ def gateway_timeout?; end
1689
+
1690
+ # source://httparty//lib/httparty/response.rb#64
1691
+ def gone?; end
1692
+
1693
+ # Returns the value of attribute headers.
1694
+ #
1695
+ # source://httparty//lib/httparty/response.rb#15
1696
+ def headers; end
1697
+
1698
+ # source://httparty//lib/httparty/response.rb#44
1699
+ def http_version; end
1700
+
1701
+ # source://httparty//lib/httparty/response.rb#64
1702
+ def im_used?; end
1703
+
1704
+ # source://httparty//lib/httparty/response.rb#64
1705
+ def information?; end
1706
+
1707
+ # source://httparty//lib/httparty/response.rb#53
1708
+ def inspect; end
1709
+
1710
+ # source://httparty//lib/httparty/response.rb#64
1711
+ def insufficient_storage?; end
1712
+
1713
+ # source://httparty//lib/httparty/response.rb#64
1714
+ def internal_server_error?; end
1715
+
1716
+ # source://httparty//lib/httparty/response.rb#64
1717
+ def length_required?; end
1718
+
1719
+ # source://httparty//lib/httparty/response.rb#64
1720
+ def locked?; end
1721
+
1722
+ # source://httparty//lib/httparty/response.rb#64
1723
+ def loop_detected?; end
1724
+
1725
+ # source://httparty//lib/httparty/response.rb#64
1726
+ def method_not_allowed?; end
1727
+
1728
+ # source://httparty//lib/httparty/response.rb#64
1729
+ def misdirected_request?; end
1730
+
1731
+ # source://httparty//lib/httparty/response.rb#64
1732
+ def moved_permanently?; end
1733
+
1734
+ # source://httparty//lib/httparty/response.rb#64
1735
+ def multi_status?; end
1736
+
1737
+ # source://httparty//lib/httparty/response.rb#64
1738
+ def multiple_choice?; end
1739
+
1740
+ # source://httparty//lib/httparty/response.rb#64
1741
+ def multiple_choices?; end
1742
+
1743
+ # source://httparty//lib/httparty/response.rb#64
1744
+ def network_authentication_required?; end
1745
+
1746
+ # @return [Boolean]
1747
+ #
1748
+ # source://httparty//lib/httparty/response.rb#83
1749
+ def nil?; end
1750
+
1751
+ # source://httparty//lib/httparty/response.rb#64
1752
+ def no_content?; end
1753
+
1754
+ # source://httparty//lib/httparty/response.rb#64
1755
+ def non_authoritative_information?; end
1756
+
1757
+ # source://httparty//lib/httparty/response.rb#64
1758
+ def not_acceptable?; end
1759
+
1760
+ # source://httparty//lib/httparty/response.rb#64
1761
+ def not_extended?; end
1762
+
1763
+ # source://httparty//lib/httparty/response.rb#64
1764
+ def not_found?; end
1765
+
1766
+ # source://httparty//lib/httparty/response.rb#64
1767
+ def not_implemented?; end
1768
+
1769
+ # source://httparty//lib/httparty/response.rb#64
1770
+ def not_modified?; end
1771
+
1772
+ # source://httparty//lib/httparty/response.rb#64
1773
+ def ok?; end
1774
+
1775
+ # source://httparty//lib/httparty/response.rb#36
1776
+ def parsed_response; end
1777
+
1778
+ # source://httparty//lib/httparty/response.rb#64
1779
+ def partial_content?; end
1780
+
1781
+ # source://httparty//lib/httparty/response.rb#64
1782
+ def payload_too_large?; end
1783
+
1784
+ # source://httparty//lib/httparty/response.rb#64
1785
+ def payment_required?; end
1786
+
1787
+ # source://httparty//lib/httparty/response.rb#64
1788
+ def permanent_redirect?; end
1789
+
1790
+ # source://httparty//lib/httparty/response.rb#64
1791
+ def precondition_failed?; end
1792
+
1793
+ # source://httparty//lib/httparty/response.rb#64
1794
+ def precondition_required?; end
1795
+
1796
+ # source://httparty//lib/httparty/response.rb#96
1797
+ def pretty_print(pp); end
1798
+
1799
+ # source://httparty//lib/httparty/response.rb#64
1800
+ def processing?; end
1801
+
1802
+ # source://httparty//lib/httparty/response.rb#64
1803
+ def proxy_authentication_required?; end
1804
+
1805
+ # source://httparty//lib/httparty/response.rb#64
1806
+ def range_not_satisfiable?; end
1807
+
1808
+ # source://httparty//lib/httparty/response.rb#64
1809
+ def redirection?; end
1810
+
1811
+ # Returns the value of attribute request.
1812
+ #
1813
+ # source://httparty//lib/httparty/response.rb#15
1814
+ def request; end
1815
+
1816
+ # source://httparty//lib/httparty/response.rb#64
1817
+ def request_entity_too_large?; end
1818
+
1819
+ # source://httparty//lib/httparty/response.rb#64
1820
+ def request_header_fields_too_large?; end
1821
+
1822
+ # source://httparty//lib/httparty/response.rb#64
1823
+ def request_time_out?; end
1824
+
1825
+ # source://httparty//lib/httparty/response.rb#64
1826
+ def request_timeout?; end
1827
+
1828
+ # source://httparty//lib/httparty/response.rb#64
1829
+ def request_uri_too_long?; end
1830
+
1831
+ # source://httparty//lib/httparty/response.rb#64
1832
+ def requested_range_not_satisfiable?; end
1833
+
1834
+ # source://httparty//lib/httparty/response.rb#64
1835
+ def reset_content?; end
1836
+
1837
+ # Returns the value of attribute response.
1838
+ #
1839
+ # source://httparty//lib/httparty/response.rb#15
1840
+ def response; end
1841
+
1842
+ # source://httparty//lib/httparty/response.rb#64
1843
+ def see_other?; end
1844
+
1845
+ # source://httparty//lib/httparty/response.rb#64
1846
+ def server_error?; end
1847
+
1848
+ # source://httparty//lib/httparty/response.rb#64
1849
+ def service_unavailable?; end
1850
+
1851
+ # source://httparty//lib/httparty/response.rb#64
1852
+ def success?; end
1853
+
1854
+ # source://httparty//lib/httparty/response.rb#64
1855
+ def switch_protocol?; end
1856
+
1857
+ # @yield [_self]
1858
+ # @yieldparam _self [HTTParty::Response] the object that the method was called on
1859
+ #
1860
+ # source://httparty//lib/httparty/response.rb#48
1861
+ def tap; end
1862
+
1863
+ # source://httparty//lib/httparty/response.rb#64
1864
+ def temporary_redirect?; end
1865
+
1866
+ # source://httparty//lib/httparty/response.rb#88
1867
+ def to_s; end
1868
+
1869
+ # source://httparty//lib/httparty/response.rb#64
1870
+ def too_many_requests?; end
1871
+
1872
+ # source://httparty//lib/httparty/response.rb#64
1873
+ def unauthorized?; end
1874
+
1875
+ # source://httparty//lib/httparty/response.rb#64
1876
+ def unavailable_for_legal_reasons?; end
1877
+
1878
+ # source://httparty//lib/httparty/response.rb#64
1879
+ def unprocessable_entity?; end
1880
+
1881
+ # source://httparty//lib/httparty/response.rb#64
1882
+ def unsupported_media_type?; end
1883
+
1884
+ # source://httparty//lib/httparty/response.rb#64
1885
+ def upgrade_required?; end
1886
+
1887
+ # source://httparty//lib/httparty/response.rb#64
1888
+ def uri_too_long?; end
1889
+
1890
+ # source://httparty//lib/httparty/response.rb#64
1891
+ def use_proxy?; end
1892
+
1893
+ # source://httparty//lib/httparty/response.rb#64
1894
+ def variant_also_negotiates?; end
1895
+
1896
+ # source://httparty//lib/httparty/response.rb#64
1897
+ def version_not_supported?; end
1898
+
1899
+ protected
1900
+
1901
+ # source://httparty//lib/httparty/response.rb#125
1902
+ def method_missing(name, *args, &block); end
1903
+
1904
+ # source://httparty//lib/httparty/response.rb#135
1905
+ def throw_exception; end
1906
+
1907
+ private
1908
+
1909
+ # @return [Boolean]
1910
+ #
1911
+ # source://httparty//lib/httparty/response.rb#114
1912
+ def respond_to_missing?(name, *args); end
1913
+
1914
+ # source://httparty//lib/httparty/response.rb#143
1915
+ def warn_about_nil_deprecation; end
1916
+
1917
+ class << self
1918
+ # source://httparty//lib/httparty/response.rb#9
1919
+ def _load(data); end
1920
+
1921
+ # source://httparty//lib/httparty/response.rb#5
1922
+ def underscore(string); end
1923
+ end
1924
+ end
1925
+
1926
+ # source://httparty//lib/httparty/response.rb#58
1927
+ HTTParty::Response::CODES_TO_OBJ = T.let(T.unsafe(nil), Hash)
1928
+
1929
+ # source://httparty//lib/httparty/response/headers.rb#7
1930
+ class HTTParty::Response::Headers < ::SimpleDelegator
1931
+ include ::Net::HTTPHeader
1932
+
1933
+ # @return [Headers] a new instance of Headers
1934
+ #
1935
+ # source://httparty//lib/httparty/response/headers.rb#10
1936
+ def initialize(header_values = T.unsafe(nil)); end
1937
+
1938
+ # source://httparty//lib/httparty/response/headers.rb#26
1939
+ def ==(other); end
1940
+ end
1941
+
1942
+ # response object accessible via the {#response} method.
1943
+ #
1944
+ # @abstract Exceptions which inherit from ResponseError contain the Net::HTTP
1945
+ #
1946
+ # source://httparty//lib/httparty/exceptions.rb#15
1947
+ class HTTParty::ResponseError < ::HTTParty::Error
1948
+ # Instantiate an instance of ResponseError with a Net::HTTPResponse object
1949
+ #
1950
+ # @param [Net::HTTPResponse]
1951
+ # @return [ResponseError] a new instance of ResponseError
1952
+ #
1953
+ # source://httparty//lib/httparty/exceptions.rb#23
1954
+ def initialize(response); end
1955
+
1956
+ # Returns the response of the last request
1957
+ # Net::HTTPOK
1958
+ #
1959
+ # @return [Net::HTTPResponse] A subclass of Net::HTTPResponse, e.g.
1960
+ #
1961
+ # source://httparty//lib/httparty/exceptions.rb#19
1962
+ def response; end
1963
+ end
1964
+
1965
+ # Allow access to http_response and code by delegation on fragment
1966
+ #
1967
+ # source://httparty//lib/httparty/response_fragment.rb#7
1968
+ class HTTParty::ResponseFragment < ::SimpleDelegator
1969
+ # @return [ResponseFragment] a new instance of ResponseFragment
1970
+ #
1971
+ # source://httparty//lib/httparty/response_fragment.rb#14
1972
+ def initialize(fragment, http_response, connection); end
1973
+
1974
+ # source://httparty//lib/httparty/response_fragment.rb#10
1975
+ def code; end
1976
+
1977
+ # Returns the value of attribute connection.
1978
+ #
1979
+ # source://httparty//lib/httparty/response_fragment.rb#8
1980
+ def connection; end
1981
+
1982
+ # Returns the value of attribute http_response.
1983
+ #
1984
+ # source://httparty//lib/httparty/response_fragment.rb#8
1985
+ def http_response; end
1986
+ end
1987
+
1988
+ # source://httparty//lib/httparty/text_encoder.rb#4
1989
+ class HTTParty::TextEncoder
1990
+ # @return [TextEncoder] a new instance of TextEncoder
1991
+ #
1992
+ # source://httparty//lib/httparty/text_encoder.rb#7
1993
+ def initialize(text, assume_utf16_is_big_endian: T.unsafe(nil), content_type: T.unsafe(nil)); end
1994
+
1995
+ # Returns the value of attribute assume_utf16_is_big_endian.
1996
+ #
1997
+ # source://httparty//lib/httparty/text_encoder.rb#5
1998
+ def assume_utf16_is_big_endian; end
1999
+
2000
+ # source://httparty//lib/httparty/text_encoder.rb#13
2001
+ def call; end
2002
+
2003
+ # Returns the value of attribute content_type.
2004
+ #
2005
+ # source://httparty//lib/httparty/text_encoder.rb#5
2006
+ def content_type; end
2007
+
2008
+ # Returns the value of attribute text.
2009
+ #
2010
+ # source://httparty//lib/httparty/text_encoder.rb#5
2011
+ def text; end
2012
+
2013
+ private
2014
+
2015
+ # @return [Boolean]
2016
+ #
2017
+ # source://httparty//lib/httparty/text_encoder.rb#23
2018
+ def can_encode?; end
2019
+
2020
+ # source://httparty//lib/httparty/text_encoder.rb#60
2021
+ def charset; end
2022
+
2023
+ # source://httparty//lib/httparty/text_encoder.rb#35
2024
+ def encode_utf_16; end
2025
+
2026
+ # source://httparty//lib/httparty/text_encoder.rb#51
2027
+ def encode_with_ruby_encoding; end
2028
+
2029
+ # source://httparty//lib/httparty/text_encoder.rb#27
2030
+ def encoded_text; end
2031
+ end
2032
+
2033
+ # Exception raised when you attempt to set a non-existent format
2034
+ #
2035
+ # source://httparty//lib/httparty/exceptions.rb#8
2036
+ class HTTParty::UnsupportedFormat < ::HTTParty::Error; end
2037
+
2038
+ # Exception raised when using a URI scheme other than HTTP or HTTPS
2039
+ #
2040
+ # source://httparty//lib/httparty/exceptions.rb#11
2041
+ class HTTParty::UnsupportedURIScheme < ::HTTParty::Error; end
2042
+
2043
+ # source://httparty//lib/httparty/utils.rb#4
2044
+ module HTTParty::Utils
2045
+ class << self
2046
+ # source://httparty//lib/httparty/utils.rb#5
2047
+ def stringify_keys(hash); end
2048
+ end
2049
+ end
2050
+
2051
+ # source://httparty//lib/httparty/version.rb#4
2052
+ HTTParty::VERSION = T.let(T.unsafe(nil), String)
2053
+
2054
+ # source://httparty//lib/httparty/net_digest_auth.rb#7
2055
+ module Net::HTTPHeader
2056
+ # source://httparty//lib/httparty/net_digest_auth.rb#8
2057
+ def digest_auth(username, password, response); end
2058
+ end
2059
+
2060
+ # source://httparty//lib/httparty/net_digest_auth.rb#26
2061
+ class Net::HTTPHeader::DigestAuthenticator
2062
+ # @return [DigestAuthenticator] a new instance of DigestAuthenticator
2063
+ #
2064
+ # source://httparty//lib/httparty/net_digest_auth.rb#27
2065
+ def initialize(username, password, method, path, response_header); end
2066
+
2067
+ # source://httparty//lib/httparty/net_digest_auth.rb#36
2068
+ def authorization_header; end
2069
+
2070
+ # source://httparty//lib/httparty/net_digest_auth.rb#58
2071
+ def cookie_header; end
2072
+
2073
+ private
2074
+
2075
+ # source://httparty//lib/httparty/net_digest_auth.rb#121
2076
+ def a1; end
2077
+
2078
+ # source://httparty//lib/httparty/net_digest_auth.rb#130
2079
+ def a2; end
2080
+
2081
+ # @return [Boolean]
2082
+ #
2083
+ # source://httparty//lib/httparty/net_digest_auth.rb#113
2084
+ def algorithm_present?; end
2085
+
2086
+ # source://httparty//lib/httparty/net_digest_auth.rb#109
2087
+ def md5(str); end
2088
+
2089
+ # @return [Boolean]
2090
+ #
2091
+ # source://httparty//lib/httparty/net_digest_auth.rb#91
2092
+ def opaque_present?; end
2093
+
2094
+ # source://httparty//lib/httparty/net_digest_auth.rb#64
2095
+ def parse(response_header); end
2096
+
2097
+ # source://httparty//lib/httparty/net_digest_auth.rb#78
2098
+ def parse_cookies(response_header); end
2099
+
2100
+ # @return [Boolean]
2101
+ #
2102
+ # source://httparty//lib/httparty/net_digest_auth.rb#95
2103
+ def qop_present?; end
2104
+
2105
+ # source://httparty//lib/httparty/net_digest_auth.rb#99
2106
+ def random; end
2107
+
2108
+ # source://httparty//lib/httparty/net_digest_auth.rb#103
2109
+ def request_digest; end
2110
+
2111
+ # @return [Boolean]
2112
+ #
2113
+ # source://httparty//lib/httparty/net_digest_auth.rb#117
2114
+ def use_md5_sess?; end
2115
+ end