wal 0.0.1 → 0.0.3
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.
- checksums.yaml +4 -4
- data/Rakefile +0 -7
- data/lib/wal/noop_watcher.rb +0 -4
- data/lib/wal/record_watcher.rb +4 -58
- data/lib/wal/replicator.rb +2 -21
- data/lib/wal/streaming_watcher.rb +0 -9
- data/lib/wal/version.rb +1 -2
- data/lib/wal/watcher.rb +0 -25
- data/lib/wal.rb +9 -68
- data/rbi/wal.rbi +5 -85
- data/sig/wal.rbs +4 -4
- metadata +2 -161
- data/sorbet/config +0 -7
- data/sorbet/rbi/annotations/.gitattributes +0 -1
- data/sorbet/rbi/annotations/activemodel.rbi +0 -89
- data/sorbet/rbi/annotations/activerecord.rbi +0 -98
- data/sorbet/rbi/annotations/activesupport.rbi +0 -463
- data/sorbet/rbi/annotations/minitest.rbi +0 -119
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/gems/.gitattributes +0 -1
- data/sorbet/rbi/gems/actioncable@8.0.2.rbi +0 -9
- data/sorbet/rbi/gems/actionmailbox@8.0.2.rbi +0 -9
- data/sorbet/rbi/gems/actionmailer@8.0.2.rbi +0 -9
- data/sorbet/rbi/gems/actionpack@8.0.2.rbi +0 -21122
- data/sorbet/rbi/gems/actiontext@8.0.2.rbi +0 -9
- data/sorbet/rbi/gems/actionview@8.0.2.rbi +0 -16423
- data/sorbet/rbi/gems/activejob@8.0.2.rbi +0 -9
- data/sorbet/rbi/gems/activemodel@8.0.2.rbi +0 -6866
- data/sorbet/rbi/gems/activerecord@8.0.2.rbi +0 -43227
- data/sorbet/rbi/gems/activestorage@8.0.2.rbi +0 -9
- data/sorbet/rbi/gems/activesupport@8.0.2.rbi +0 -21110
- data/sorbet/rbi/gems/ast@2.4.3.rbi +0 -585
- data/sorbet/rbi/gems/base64@0.3.0.rbi +0 -545
- data/sorbet/rbi/gems/benchmark@0.4.1.rbi +0 -619
- data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +0 -78
- data/sorbet/rbi/gems/builder@3.3.0.rbi +0 -9
- data/sorbet/rbi/gems/commander@5.0.0.rbi +0 -9
- data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +0 -11657
- data/sorbet/rbi/gems/connection_pool@2.5.3.rbi +0 -9
- data/sorbet/rbi/gems/crass@1.0.6.rbi +0 -623
- data/sorbet/rbi/gems/date@3.4.1.rbi +0 -75
- data/sorbet/rbi/gems/diff-lcs@1.6.2.rbi +0 -1134
- data/sorbet/rbi/gems/docker-api@2.4.0.rbi +0 -1719
- data/sorbet/rbi/gems/docopt@0.6.1.rbi +0 -9
- data/sorbet/rbi/gems/drb@2.2.3.rbi +0 -1661
- data/sorbet/rbi/gems/erubi@1.13.1.rbi +0 -155
- data/sorbet/rbi/gems/excon@1.2.7.rbi +0 -1514
- data/sorbet/rbi/gems/globalid@1.2.1.rbi +0 -9
- data/sorbet/rbi/gems/highline@3.0.1.rbi +0 -9
- data/sorbet/rbi/gems/i18n@1.14.7.rbi +0 -2359
- data/sorbet/rbi/gems/io-console@0.8.0.rbi +0 -9
- data/sorbet/rbi/gems/logger@1.7.0.rbi +0 -963
- data/sorbet/rbi/gems/loofah@2.24.1.rbi +0 -1105
- data/sorbet/rbi/gems/mail@2.8.1.rbi +0 -9
- data/sorbet/rbi/gems/marcel@1.0.4.rbi +0 -9
- data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +0 -9
- data/sorbet/rbi/gems/minitest@5.25.5.rbi +0 -1704
- data/sorbet/rbi/gems/multi_json@1.15.0.rbi +0 -268
- data/sorbet/rbi/gems/net-imap@0.5.9.rbi +0 -9
- data/sorbet/rbi/gems/net-pop@0.1.2.rbi +0 -9
- data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +0 -292
- data/sorbet/rbi/gems/net-smtp@0.5.1.rbi +0 -9
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
- data/sorbet/rbi/gems/nio4r@2.7.4.rbi +0 -9
- data/sorbet/rbi/gems/nokogiri@1.18.8.rbi +0 -8206
- data/sorbet/rbi/gems/ostruct@0.6.2.rbi +0 -354
- data/sorbet/rbi/gems/parallel@1.27.0.rbi +0 -291
- data/sorbet/rbi/gems/parlour@9.1.1.rbi +0 -3071
- data/sorbet/rbi/gems/parser@3.3.8.0.rbi +0 -7338
- data/sorbet/rbi/gems/pg-replication-protocol@0.0.7.rbi +0 -633
- data/sorbet/rbi/gems/pg@1.5.9.rbi +0 -2806
- data/sorbet/rbi/gems/pp@0.6.2.rbi +0 -368
- data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +0 -477
- data/sorbet/rbi/gems/prism@1.4.0.rbi +0 -41732
- data/sorbet/rbi/gems/psych@5.2.3.rbi +0 -2435
- data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -160
- data/sorbet/rbi/gems/rack-session@2.1.1.rbi +0 -727
- data/sorbet/rbi/gems/rack-test@2.2.0.rbi +0 -734
- data/sorbet/rbi/gems/rack@3.1.16.rbi +0 -4940
- data/sorbet/rbi/gems/rackup@2.2.1.rbi +0 -230
- data/sorbet/rbi/gems/rails-dom-testing@2.3.0.rbi +0 -858
- data/sorbet/rbi/gems/rails-html-sanitizer@1.6.2.rbi +0 -785
- data/sorbet/rbi/gems/rails@8.0.2.rbi +0 -9
- data/sorbet/rbi/gems/railties@8.0.2.rbi +0 -3865
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
- data/sorbet/rbi/gems/rake@13.2.1.rbi +0 -3120
- data/sorbet/rbi/gems/rbi@0.3.6.rbi +0 -6893
- data/sorbet/rbi/gems/rbs@3.9.4.rbi +0 -6978
- data/sorbet/rbi/gems/rdoc@6.12.0.rbi +0 -12760
- data/sorbet/rbi/gems/reline@0.6.0.rbi +0 -2451
- data/sorbet/rbi/gems/rexml@3.4.1.rbi +0 -5240
- data/sorbet/rbi/gems/rspec-core@3.13.4.rbi +0 -11348
- data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +0 -8189
- data/sorbet/rbi/gems/rspec-mocks@3.13.5.rbi +0 -5350
- data/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi +0 -164
- data/sorbet/rbi/gems/rspec-support@3.13.4.rbi +0 -1630
- data/sorbet/rbi/gems/rspec@3.13.1.rbi +0 -83
- data/sorbet/rbi/gems/securerandom@0.4.1.rbi +0 -75
- data/sorbet/rbi/gems/spoom@1.6.3.rbi +0 -6985
- data/sorbet/rbi/gems/stringio@3.1.5.rbi +0 -9
- data/sorbet/rbi/gems/tapioca@0.16.11.rbi +0 -3628
- data/sorbet/rbi/gems/testcontainers-core@0.2.0.rbi +0 -1005
- data/sorbet/rbi/gems/testcontainers-postgres@0.2.0.rbi +0 -145
- data/sorbet/rbi/gems/thor@1.3.2.rbi +0 -4378
- data/sorbet/rbi/gems/timeout@0.4.3.rbi +0 -157
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +0 -5918
- data/sorbet/rbi/gems/uri@1.0.3.rbi +0 -2349
- data/sorbet/rbi/gems/useragent@0.16.11.rbi +0 -9
- data/sorbet/rbi/gems/websocket-driver@0.8.0.rbi +0 -9
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +0 -9
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
- data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18379
- data/sorbet/rbi/gems/zeitwerk@2.7.3.rbi +0 -9
- data/sorbet/tapioca/config.yml +0 -5
- data/sorbet/tapioca/require.rb +0 -12
@@ -1,1514 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `excon` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem excon`.
|
6
|
-
|
7
|
-
|
8
|
-
# Define defaults first so they will be available to other files
|
9
|
-
#
|
10
|
-
# source://excon//lib/excon/version.rb#3
|
11
|
-
module Excon
|
12
|
-
class << self
|
13
|
-
# source://excon//lib/excon.rb#251
|
14
|
-
def connect(url, params = T.unsafe(nil), &block); end
|
15
|
-
|
16
|
-
# @return [Hash] defaults for Excon connections
|
17
|
-
#
|
18
|
-
# source://excon//lib/excon.rb#50
|
19
|
-
def defaults; end
|
20
|
-
|
21
|
-
# Change defaults for Excon connections
|
22
|
-
#
|
23
|
-
# @return [Hash] defaults for Excon connections
|
24
|
-
#
|
25
|
-
# source://excon//lib/excon.rb#56
|
26
|
-
def defaults=(_arg0); end
|
27
|
-
|
28
|
-
# source://excon//lib/excon.rb#251
|
29
|
-
def delete(url, params = T.unsafe(nil), &block); end
|
30
|
-
|
31
|
-
# @raise [Error::Warning]
|
32
|
-
#
|
33
|
-
# source://excon//lib/excon.rb#58
|
34
|
-
def display_warning(warning); end
|
35
|
-
|
36
|
-
# source://excon//lib/excon.rb#251
|
37
|
-
def get(url, params = T.unsafe(nil), &block); end
|
38
|
-
|
39
|
-
# source://excon//lib/excon.rb#251
|
40
|
-
def head(url, params = T.unsafe(nil), &block); end
|
41
|
-
|
42
|
-
# Status of mocking
|
43
|
-
#
|
44
|
-
# source://excon//lib/excon.rb#72
|
45
|
-
def mock; end
|
46
|
-
|
47
|
-
# Change the status of mocking
|
48
|
-
# false is the default and works as expected
|
49
|
-
# true returns a value from stubs or raises
|
50
|
-
#
|
51
|
-
# source://excon//lib/excon.rb#80
|
52
|
-
def mock=(new_mock); end
|
53
|
-
|
54
|
-
# Initializes a new keep-alive session for a given remote host
|
55
|
-
#
|
56
|
-
# @param url [String] The destination URL
|
57
|
-
# @param params [Hash<Symbol, >] One or more option params to set on the Connection instance
|
58
|
-
# @raise [ArgumentError]
|
59
|
-
# @return [Connection] A new Excon::Connection instance
|
60
|
-
# @see Connection#initialize
|
61
|
-
#
|
62
|
-
# source://excon//lib/excon.rb#116
|
63
|
-
def new(url, params = T.unsafe(nil)); end
|
64
|
-
|
65
|
-
# source://excon//lib/excon.rb#251
|
66
|
-
def options(url, params = T.unsafe(nil), &block); end
|
67
|
-
|
68
|
-
# source://excon//lib/excon.rb#251
|
69
|
-
def patch(url, params = T.unsafe(nil), &block); end
|
70
|
-
|
71
|
-
# source://excon//lib/excon.rb#251
|
72
|
-
def post(url, params = T.unsafe(nil), &block); end
|
73
|
-
|
74
|
-
# source://excon//lib/excon.rb#251
|
75
|
-
def put(url, params = T.unsafe(nil), &block); end
|
76
|
-
|
77
|
-
# source://excon//lib/excon.rb#67
|
78
|
-
def set_raise_on_warnings!(should_raise); end
|
79
|
-
|
80
|
-
# @return [String] The filesystem path to the SSL Certificate Authority
|
81
|
-
#
|
82
|
-
# source://excon//lib/excon.rb#86
|
83
|
-
def ssl_ca_path; end
|
84
|
-
|
85
|
-
# Change path to the SSL Certificate Authority
|
86
|
-
#
|
87
|
-
# @return [String] The filesystem path to the SSL Certificate Authority
|
88
|
-
#
|
89
|
-
# source://excon//lib/excon.rb#93
|
90
|
-
def ssl_ca_path=(new_ssl_ca_path); end
|
91
|
-
|
92
|
-
# @return [true, false] Whether or not to verify the peer's SSL certificate / chain
|
93
|
-
#
|
94
|
-
# source://excon//lib/excon.rb#99
|
95
|
-
def ssl_verify_peer; end
|
96
|
-
|
97
|
-
# Change the status of ssl peer verification
|
98
|
-
#
|
99
|
-
# @see Excon#ssl_verify_peer (attr_reader)
|
100
|
-
#
|
101
|
-
# source://excon//lib/excon.rb#106
|
102
|
-
def ssl_verify_peer=(new_ssl_verify_peer); end
|
103
|
-
|
104
|
-
# push an additional stub onto the list to check for mock requests
|
105
|
-
#
|
106
|
-
# @param request_params [Hash<Symbol, >] request params to match against, omitted params match all
|
107
|
-
# @param response_params [Hash<Symbol, >] response params to return or block to call with matched params
|
108
|
-
#
|
109
|
-
# source://excon//lib/excon.rb#138
|
110
|
-
def stub(request_params = T.unsafe(nil), response_params = T.unsafe(nil), &block); end
|
111
|
-
|
112
|
-
# get a stub matching params or nil
|
113
|
-
#
|
114
|
-
# @param request_params [Hash<Symbol, >] request params to match against, omitted params match all
|
115
|
-
# @return [Hash<Symbol, >] response params to return from matched request or block to call with params
|
116
|
-
#
|
117
|
-
# source://excon//lib/excon.rb#182
|
118
|
-
def stub_for(request_params = T.unsafe(nil)); end
|
119
|
-
|
120
|
-
# get a list of defined stubs
|
121
|
-
#
|
122
|
-
# source://excon//lib/excon.rb#230
|
123
|
-
def stubs; end
|
124
|
-
|
125
|
-
# source://excon//lib/excon.rb#251
|
126
|
-
def trace(url, params = T.unsafe(nil), &block); end
|
127
|
-
|
128
|
-
# remove first/oldest stub matching request_params or nil if none match
|
129
|
-
#
|
130
|
-
# @param request_params [Hash<Symbol, >] request params to match against, omitted params match all
|
131
|
-
# @return [Hash<Symbol, >] response params from deleted stub
|
132
|
-
#
|
133
|
-
# source://excon//lib/excon.rb#242
|
134
|
-
def unstub(request_params = T.unsafe(nil)); end
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
# avoid overwrite if somebody has redefined
|
139
|
-
#
|
140
|
-
# source://excon//lib/excon/constants.rb#10
|
141
|
-
Excon::CHUNK_SIZE = T.let(T.unsafe(nil), Integer)
|
142
|
-
|
143
|
-
# source://excon//lib/excon/constants.rb#3
|
144
|
-
Excon::CR_NL = T.let(T.unsafe(nil), String)
|
145
|
-
|
146
|
-
# source://excon//lib/excon/connection.rb#4
|
147
|
-
class Excon::Connection
|
148
|
-
include ::Excon::Utils
|
149
|
-
|
150
|
-
# Initializes a new Connection instance
|
151
|
-
#
|
152
|
-
# @option params
|
153
|
-
# @option params
|
154
|
-
# @option params
|
155
|
-
# @option params
|
156
|
-
# @option params
|
157
|
-
# @option params
|
158
|
-
# @option params
|
159
|
-
# @option params
|
160
|
-
# @option params
|
161
|
-
# @option params
|
162
|
-
# @option params
|
163
|
-
# @option params
|
164
|
-
# @option params
|
165
|
-
# @option params
|
166
|
-
# @option params
|
167
|
-
# @param params [Hash<Symbol, >] One or more optional params
|
168
|
-
# @return [Connection] a new instance of Connection
|
169
|
-
#
|
170
|
-
# source://excon//lib/excon/connection.rb#63
|
171
|
-
def initialize(params = T.unsafe(nil)); end
|
172
|
-
|
173
|
-
# Sends the supplied requests to the destination host using pipelining in
|
174
|
-
# batches of @limit [Numeric] requests. This is your soft file descriptor
|
175
|
-
# limit by default, typically 256.
|
176
|
-
#
|
177
|
-
# @param pipeline_params [Array<Hash>] An array of one or more optional params, override defaults set in Connection.new, see #request for details
|
178
|
-
#
|
179
|
-
# source://excon//lib/excon/connection.rb#357
|
180
|
-
def batch_requests(pipeline_params, limit = T.unsafe(nil)); end
|
181
|
-
|
182
|
-
# source://excon//lib/excon/connection.rb#378
|
183
|
-
def connect(params = T.unsafe(nil), &block); end
|
184
|
-
|
185
|
-
# source://excon//lib/excon/connection.rb#9
|
186
|
-
def connection; end
|
187
|
-
|
188
|
-
# source://excon//lib/excon/connection.rb#13
|
189
|
-
def connection=(new_params); end
|
190
|
-
|
191
|
-
# Returns the value of attribute data.
|
192
|
-
#
|
193
|
-
# source://excon//lib/excon/connection.rb#7
|
194
|
-
def data; end
|
195
|
-
|
196
|
-
# source://excon//lib/excon/connection.rb#378
|
197
|
-
def delete(params = T.unsafe(nil), &block); end
|
198
|
-
|
199
|
-
# source://excon//lib/excon/connection.rb#108
|
200
|
-
def error_call(datum); end
|
201
|
-
|
202
|
-
# source://excon//lib/excon/connection.rb#378
|
203
|
-
def get(params = T.unsafe(nil), &block); end
|
204
|
-
|
205
|
-
# source://excon//lib/excon/connection.rb#378
|
206
|
-
def head(params = T.unsafe(nil), &block); end
|
207
|
-
|
208
|
-
# source://excon//lib/excon/connection.rb#394
|
209
|
-
def inspect; end
|
210
|
-
|
211
|
-
# source://excon//lib/excon/connection.rb#36
|
212
|
-
def logger; end
|
213
|
-
|
214
|
-
# source://excon//lib/excon/connection.rb#41
|
215
|
-
def logger=(logger); end
|
216
|
-
|
217
|
-
# source://excon//lib/excon/connection.rb#378
|
218
|
-
def options(params = T.unsafe(nil), &block); end
|
219
|
-
|
220
|
-
# source://excon//lib/excon/connection.rb#18
|
221
|
-
def params; end
|
222
|
-
|
223
|
-
# source://excon//lib/excon/connection.rb#22
|
224
|
-
def params=(new_params); end
|
225
|
-
|
226
|
-
# source://excon//lib/excon/connection.rb#378
|
227
|
-
def patch(params = T.unsafe(nil), &block); end
|
228
|
-
|
229
|
-
# source://excon//lib/excon/connection.rb#378
|
230
|
-
def post(params = T.unsafe(nil), &block); end
|
231
|
-
|
232
|
-
# source://excon//lib/excon/connection.rb#27
|
233
|
-
def proxy; end
|
234
|
-
|
235
|
-
# source://excon//lib/excon/connection.rb#31
|
236
|
-
def proxy=(new_proxy); end
|
237
|
-
|
238
|
-
# source://excon//lib/excon/connection.rb#378
|
239
|
-
def put(params = T.unsafe(nil), &block); end
|
240
|
-
|
241
|
-
# Sends the supplied request to the destination host.
|
242
|
-
#
|
243
|
-
# @option params
|
244
|
-
# @option params
|
245
|
-
# @option params
|
246
|
-
# @option params
|
247
|
-
# @param params [Hash<Symbol, >] One or more optional params, override defaults set in Connection.new
|
248
|
-
# @yield [chunk] @see Response#self.parse
|
249
|
-
#
|
250
|
-
# source://excon//lib/excon/connection.rb#229
|
251
|
-
def request(params = T.unsafe(nil), &block); end
|
252
|
-
|
253
|
-
# source://excon//lib/excon/connection.rb#114
|
254
|
-
def request_call(datum); end
|
255
|
-
|
256
|
-
# Sends the supplied requests to the destination host using pipelining.
|
257
|
-
#
|
258
|
-
# @param pipeline_params [Array<Hash>] An array of one or more optional params, override defaults set in Connection.new, see #request for details
|
259
|
-
#
|
260
|
-
# source://excon//lib/excon/connection.rb#330
|
261
|
-
def requests(pipeline_params); end
|
262
|
-
|
263
|
-
# source://excon//lib/excon/connection.rb#368
|
264
|
-
def reset; end
|
265
|
-
|
266
|
-
# source://excon//lib/excon/connection.rb#208
|
267
|
-
def response_call(datum); end
|
268
|
-
|
269
|
-
# source://excon//lib/excon/connection.rb#389
|
270
|
-
def retry_limit; end
|
271
|
-
|
272
|
-
# source://excon//lib/excon/connection.rb#384
|
273
|
-
def retry_limit=(new_retry_limit); end
|
274
|
-
|
275
|
-
# source://excon//lib/excon/connection.rb#378
|
276
|
-
def trace(params = T.unsafe(nil), &block); end
|
277
|
-
|
278
|
-
# source://excon//lib/excon/connection.rb#408
|
279
|
-
def valid_request_keys(middlewares); end
|
280
|
-
|
281
|
-
private
|
282
|
-
|
283
|
-
# source://excon//lib/excon/connection.rb#414
|
284
|
-
def detect_content_length(body); end
|
285
|
-
|
286
|
-
# source://excon//lib/excon/connection.rb#534
|
287
|
-
def proxy_from_env; end
|
288
|
-
|
289
|
-
# source://excon//lib/excon/connection.rb#521
|
290
|
-
def proxy_match_host_port(host, port); end
|
291
|
-
|
292
|
-
# source://excon//lib/excon/connection.rb#513
|
293
|
-
def raise_socket_error(error); end
|
294
|
-
|
295
|
-
# source://excon//lib/excon/connection.rb#471
|
296
|
-
def response(datum = T.unsafe(nil)); end
|
297
|
-
|
298
|
-
# source://excon//lib/excon/connection.rb#562
|
299
|
-
def setup_proxy; end
|
300
|
-
|
301
|
-
# source://excon//lib/excon/connection.rb#482
|
302
|
-
def socket(datum = T.unsafe(nil)); end
|
303
|
-
|
304
|
-
# source://excon//lib/excon/connection.rb#493
|
305
|
-
def sockets; end
|
306
|
-
|
307
|
-
# source://excon//lib/excon/connection.rb#426
|
308
|
-
def valid_middleware_keys(middlewares); end
|
309
|
-
|
310
|
-
# source://excon//lib/excon/connection.rb#439
|
311
|
-
def validate_params(validation, params, middlewares); end
|
312
|
-
end
|
313
|
-
|
314
|
-
# source://excon//lib/excon/constants.rb#186
|
315
|
-
Excon::DEFAULTS = T.let(T.unsafe(nil), Hash)
|
316
|
-
|
317
|
-
# source://excon//lib/excon/constants.rb#5
|
318
|
-
Excon::DEFAULT_CA_FILE = T.let(T.unsafe(nil), String)
|
319
|
-
|
320
|
-
# 1 megabyte
|
321
|
-
#
|
322
|
-
# source://excon//lib/excon/constants.rb#7
|
323
|
-
Excon::DEFAULT_CHUNK_SIZE = T.let(T.unsafe(nil), Integer)
|
324
|
-
|
325
|
-
# source://excon//lib/excon/constants.rb#12
|
326
|
-
Excon::DEFAULT_REDIRECT_LIMIT = T.let(T.unsafe(nil), Integer)
|
327
|
-
|
328
|
-
# source://excon//lib/excon/constants.rb#16
|
329
|
-
Excon::DEFAULT_RETRY_ERRORS = T.let(T.unsafe(nil), Array)
|
330
|
-
|
331
|
-
# source://excon//lib/excon/constants.rb#14
|
332
|
-
Excon::DEFAULT_RETRY_LIMIT = T.let(T.unsafe(nil), Integer)
|
333
|
-
|
334
|
-
# source://excon//lib/excon/constants.rb#118
|
335
|
-
Excon::DEPRECATED_VALID_REQUEST_KEYS = T.let(T.unsafe(nil), Hash)
|
336
|
-
|
337
|
-
# Excon exception classes
|
338
|
-
#
|
339
|
-
# source://excon//lib/excon/error.rb#4
|
340
|
-
class Excon::Error < ::StandardError
|
341
|
-
class << self
|
342
|
-
# Messages for nicer exceptions, from rfc2616
|
343
|
-
#
|
344
|
-
# source://excon//lib/excon/error.rb#174
|
345
|
-
def status_error(request, response); end
|
346
|
-
|
347
|
-
# source://excon//lib/excon/error.rb#127
|
348
|
-
def status_errors; end
|
349
|
-
end
|
350
|
-
end
|
351
|
-
|
352
|
-
# 202
|
353
|
-
#
|
354
|
-
# source://excon//lib/excon/error.rb#89
|
355
|
-
class Excon::Error::Accepted < ::Excon::Error::Success; end
|
356
|
-
|
357
|
-
# 502
|
358
|
-
#
|
359
|
-
# source://excon//lib/excon/error.rb#123
|
360
|
-
class Excon::Error::BadGateway < ::Excon::Error::Server; end
|
361
|
-
|
362
|
-
# 400
|
363
|
-
#
|
364
|
-
# source://excon//lib/excon/error.rb#101
|
365
|
-
class Excon::Error::BadRequest < ::Excon::Error::Client; end
|
366
|
-
|
367
|
-
# Certificate related errors
|
368
|
-
#
|
369
|
-
# source://excon//lib/excon/error.rb#27
|
370
|
-
class Excon::Error::Certificate < ::Excon::Error::Socket
|
371
|
-
# @return [Certificate] a new instance of Certificate
|
372
|
-
#
|
373
|
-
# source://excon//lib/excon/error.rb#28
|
374
|
-
def initialize(socket_error = T.unsafe(nil)); end
|
375
|
-
end
|
376
|
-
|
377
|
-
# source://excon//lib/excon/error.rb#82
|
378
|
-
class Excon::Error::Client < ::Excon::Error::HTTPStatus; end
|
379
|
-
|
380
|
-
# 409
|
381
|
-
#
|
382
|
-
# source://excon//lib/excon/error.rb#110
|
383
|
-
class Excon::Error::Conflict < ::Excon::Error::Client; end
|
384
|
-
|
385
|
-
# 100
|
386
|
-
#
|
387
|
-
# source://excon//lib/excon/error.rb#85
|
388
|
-
class Excon::Error::Continue < ::Excon::Error::Informational; end
|
389
|
-
|
390
|
-
# 201
|
391
|
-
#
|
392
|
-
# source://excon//lib/excon/error.rb#88
|
393
|
-
class Excon::Error::Created < ::Excon::Error::Success; end
|
394
|
-
|
395
|
-
# 417
|
396
|
-
#
|
397
|
-
# source://excon//lib/excon/error.rb#118
|
398
|
-
class Excon::Error::ExpectationFailed < ::Excon::Error::Client; end
|
399
|
-
|
400
|
-
# 403
|
401
|
-
#
|
402
|
-
# source://excon//lib/excon/error.rb#104
|
403
|
-
class Excon::Error::Forbidden < ::Excon::Error::Client; end
|
404
|
-
|
405
|
-
# 302
|
406
|
-
#
|
407
|
-
# source://excon//lib/excon/error.rb#96
|
408
|
-
class Excon::Error::Found < ::Excon::Error::Redirection; end
|
409
|
-
|
410
|
-
# 504
|
411
|
-
#
|
412
|
-
# source://excon//lib/excon/error.rb#125
|
413
|
-
class Excon::Error::GatewayTimeout < ::Excon::Error::Server; end
|
414
|
-
|
415
|
-
# 410
|
416
|
-
#
|
417
|
-
# source://excon//lib/excon/error.rb#111
|
418
|
-
class Excon::Error::Gone < ::Excon::Error::Client; end
|
419
|
-
|
420
|
-
# Base class for HTTP Error classes
|
421
|
-
#
|
422
|
-
# source://excon//lib/excon/error.rb#68
|
423
|
-
class Excon::Error::HTTPStatus < ::Excon::Error
|
424
|
-
# @return [HTTPStatus] a new instance of HTTPStatus
|
425
|
-
#
|
426
|
-
# source://excon//lib/excon/error.rb#71
|
427
|
-
def initialize(msg, request = T.unsafe(nil), response = T.unsafe(nil)); end
|
428
|
-
|
429
|
-
# Returns the value of attribute request.
|
430
|
-
#
|
431
|
-
# source://excon//lib/excon/error.rb#69
|
432
|
-
def request; end
|
433
|
-
|
434
|
-
# Returns the value of attribute response.
|
435
|
-
#
|
436
|
-
# source://excon//lib/excon/error.rb#69
|
437
|
-
def response; end
|
438
|
-
end
|
439
|
-
|
440
|
-
# HTTP Error classes
|
441
|
-
#
|
442
|
-
# source://excon//lib/excon/error.rb#79
|
443
|
-
class Excon::Error::Informational < ::Excon::Error::HTTPStatus; end
|
444
|
-
|
445
|
-
# 500
|
446
|
-
#
|
447
|
-
# source://excon//lib/excon/error.rb#121
|
448
|
-
class Excon::Error::InternalServerError < ::Excon::Error::Server; end
|
449
|
-
|
450
|
-
# source://excon//lib/excon/error.rb#49
|
451
|
-
class Excon::Error::InvalidHeaderKey < ::Excon::Error; end
|
452
|
-
|
453
|
-
# source://excon//lib/excon/error.rb#50
|
454
|
-
class Excon::Error::InvalidHeaderValue < ::Excon::Error; end
|
455
|
-
|
456
|
-
# source://excon//lib/excon/error.rb#8
|
457
|
-
class Excon::Error::InvalidStub < ::Excon::Error; end
|
458
|
-
|
459
|
-
# 411
|
460
|
-
#
|
461
|
-
# source://excon//lib/excon/error.rb#112
|
462
|
-
class Excon::Error::LengthRequired < ::Excon::Error::Client; end
|
463
|
-
|
464
|
-
# 405
|
465
|
-
#
|
466
|
-
# source://excon//lib/excon/error.rb#106
|
467
|
-
class Excon::Error::MethodNotAllowed < ::Excon::Error::Client; end
|
468
|
-
|
469
|
-
# 301
|
470
|
-
#
|
471
|
-
# source://excon//lib/excon/error.rb#95
|
472
|
-
class Excon::Error::MovedPermanently < ::Excon::Error::Redirection; end
|
473
|
-
|
474
|
-
# 300
|
475
|
-
#
|
476
|
-
# source://excon//lib/excon/error.rb#94
|
477
|
-
class Excon::Error::MultipleChoices < ::Excon::Error::Redirection; end
|
478
|
-
|
479
|
-
# 204
|
480
|
-
#
|
481
|
-
# source://excon//lib/excon/error.rb#91
|
482
|
-
class Excon::Error::NoContent < ::Excon::Error::Success; end
|
483
|
-
|
484
|
-
# 203
|
485
|
-
#
|
486
|
-
# source://excon//lib/excon/error.rb#90
|
487
|
-
class Excon::Error::NonAuthoritativeInformation < ::Excon::Error::Success; end
|
488
|
-
|
489
|
-
# 406
|
490
|
-
#
|
491
|
-
# source://excon//lib/excon/error.rb#107
|
492
|
-
class Excon::Error::NotAcceptable < ::Excon::Error::Client; end
|
493
|
-
|
494
|
-
# 404
|
495
|
-
#
|
496
|
-
# source://excon//lib/excon/error.rb#105
|
497
|
-
class Excon::Error::NotFound < ::Excon::Error::Client; end
|
498
|
-
|
499
|
-
# 501
|
500
|
-
#
|
501
|
-
# source://excon//lib/excon/error.rb#122
|
502
|
-
class Excon::Error::NotImplemented < ::Excon::Error::Server; end
|
503
|
-
|
504
|
-
# 304
|
505
|
-
#
|
506
|
-
# source://excon//lib/excon/error.rb#98
|
507
|
-
class Excon::Error::NotModified < ::Excon::Error::Redirection; end
|
508
|
-
|
509
|
-
# 200
|
510
|
-
#
|
511
|
-
# source://excon//lib/excon/error.rb#87
|
512
|
-
class Excon::Error::OK < ::Excon::Error::Success; end
|
513
|
-
|
514
|
-
# 206
|
515
|
-
#
|
516
|
-
# source://excon//lib/excon/error.rb#93
|
517
|
-
class Excon::Error::PartialContent < ::Excon::Error::Success; end
|
518
|
-
|
519
|
-
# 402
|
520
|
-
#
|
521
|
-
# source://excon//lib/excon/error.rb#103
|
522
|
-
class Excon::Error::PaymentRequired < ::Excon::Error::Client; end
|
523
|
-
|
524
|
-
# 412
|
525
|
-
#
|
526
|
-
# source://excon//lib/excon/error.rb#113
|
527
|
-
class Excon::Error::PreconditionFailed < ::Excon::Error::Client; end
|
528
|
-
|
529
|
-
# 407
|
530
|
-
#
|
531
|
-
# source://excon//lib/excon/error.rb#108
|
532
|
-
class Excon::Error::ProxyAuthenticationRequired < ::Excon::Error::Client; end
|
533
|
-
|
534
|
-
# source://excon//lib/excon/error.rb#54
|
535
|
-
class Excon::Error::ProxyConnectionError < ::Excon::Error
|
536
|
-
# @return [ProxyConnectionError] a new instance of ProxyConnectionError
|
537
|
-
#
|
538
|
-
# source://excon//lib/excon/error.rb#57
|
539
|
-
def initialize(msg, request = T.unsafe(nil), response = T.unsafe(nil)); end
|
540
|
-
|
541
|
-
# Returns the value of attribute request.
|
542
|
-
#
|
543
|
-
# source://excon//lib/excon/error.rb#55
|
544
|
-
def request; end
|
545
|
-
|
546
|
-
# Returns the value of attribute response.
|
547
|
-
#
|
548
|
-
# source://excon//lib/excon/error.rb#55
|
549
|
-
def response; end
|
550
|
-
end
|
551
|
-
|
552
|
-
# source://excon//lib/excon/error.rb#64
|
553
|
-
class Excon::Error::ProxyParse < ::Excon::Error; end
|
554
|
-
|
555
|
-
# source://excon//lib/excon/error.rb#81
|
556
|
-
class Excon::Error::Redirection < ::Excon::Error::HTTPStatus; end
|
557
|
-
|
558
|
-
# 413
|
559
|
-
#
|
560
|
-
# source://excon//lib/excon/error.rb#114
|
561
|
-
class Excon::Error::RequestEntityTooLarge < ::Excon::Error::Client; end
|
562
|
-
|
563
|
-
# 408
|
564
|
-
#
|
565
|
-
# source://excon//lib/excon/error.rb#109
|
566
|
-
class Excon::Error::RequestTimeout < ::Excon::Error::Client; end
|
567
|
-
|
568
|
-
# 414
|
569
|
-
#
|
570
|
-
# source://excon//lib/excon/error.rb#115
|
571
|
-
class Excon::Error::RequestURITooLong < ::Excon::Error::Client; end
|
572
|
-
|
573
|
-
# 416
|
574
|
-
#
|
575
|
-
# source://excon//lib/excon/error.rb#117
|
576
|
-
class Excon::Error::RequestedRangeNotSatisfiable < ::Excon::Error::Client; end
|
577
|
-
|
578
|
-
# 205
|
579
|
-
#
|
580
|
-
# source://excon//lib/excon/error.rb#92
|
581
|
-
class Excon::Error::ResetContent < ::Excon::Error::Success; end
|
582
|
-
|
583
|
-
# source://excon//lib/excon/error.rb#52
|
584
|
-
class Excon::Error::ResponseParse < ::Excon::Error; end
|
585
|
-
|
586
|
-
# 303
|
587
|
-
#
|
588
|
-
# source://excon//lib/excon/error.rb#97
|
589
|
-
class Excon::Error::SeeOther < ::Excon::Error::Redirection; end
|
590
|
-
|
591
|
-
# source://excon//lib/excon/error.rb#83
|
592
|
-
class Excon::Error::Server < ::Excon::Error::HTTPStatus; end
|
593
|
-
|
594
|
-
# 503
|
595
|
-
#
|
596
|
-
# source://excon//lib/excon/error.rb#124
|
597
|
-
class Excon::Error::ServiceUnavailable < ::Excon::Error::Server; end
|
598
|
-
|
599
|
-
# Socket related errors
|
600
|
-
#
|
601
|
-
# source://excon//lib/excon/error.rb#12
|
602
|
-
class Excon::Error::Socket < ::Excon::Error
|
603
|
-
# @return [Socket] a new instance of Socket
|
604
|
-
#
|
605
|
-
# source://excon//lib/excon/error.rb#15
|
606
|
-
def initialize(socket_error = T.unsafe(nil)); end
|
607
|
-
|
608
|
-
# Returns the value of attribute socket_error.
|
609
|
-
#
|
610
|
-
# source://excon//lib/excon/error.rb#13
|
611
|
-
def socket_error; end
|
612
|
-
end
|
613
|
-
|
614
|
-
# source://excon//lib/excon/error.rb#7
|
615
|
-
class Excon::Error::StubNotFound < ::Excon::Error; end
|
616
|
-
|
617
|
-
# source://excon//lib/excon/error.rb#80
|
618
|
-
class Excon::Error::Success < ::Excon::Error::HTTPStatus; end
|
619
|
-
|
620
|
-
# 101
|
621
|
-
#
|
622
|
-
# source://excon//lib/excon/error.rb#86
|
623
|
-
class Excon::Error::SwitchingProtocols < ::Excon::Error::Informational; end
|
624
|
-
|
625
|
-
# 307
|
626
|
-
#
|
627
|
-
# source://excon//lib/excon/error.rb#100
|
628
|
-
class Excon::Error::TemporaryRedirect < ::Excon::Error::Redirection; end
|
629
|
-
|
630
|
-
# source://excon//lib/excon/error.rb#51
|
631
|
-
class Excon::Error::Timeout < ::Excon::Error; end
|
632
|
-
|
633
|
-
# source://excon//lib/excon/error.rb#65
|
634
|
-
class Excon::Error::TooManyRedirects < ::Excon::Error; end
|
635
|
-
|
636
|
-
# 429
|
637
|
-
#
|
638
|
-
# source://excon//lib/excon/error.rb#120
|
639
|
-
class Excon::Error::TooManyRequests < ::Excon::Error::Client; end
|
640
|
-
|
641
|
-
# 401
|
642
|
-
#
|
643
|
-
# source://excon//lib/excon/error.rb#102
|
644
|
-
class Excon::Error::Unauthorized < ::Excon::Error::Client; end
|
645
|
-
|
646
|
-
# 422
|
647
|
-
#
|
648
|
-
# source://excon//lib/excon/error.rb#119
|
649
|
-
class Excon::Error::UnprocessableEntity < ::Excon::Error::Client; end
|
650
|
-
|
651
|
-
# 415
|
652
|
-
#
|
653
|
-
# source://excon//lib/excon/error.rb#116
|
654
|
-
class Excon::Error::UnsupportedMediaType < ::Excon::Error::Client; end
|
655
|
-
|
656
|
-
# 305
|
657
|
-
#
|
658
|
-
# source://excon//lib/excon/error.rb#99
|
659
|
-
class Excon::Error::UseProxy < ::Excon::Error::Redirection; end
|
660
|
-
|
661
|
-
# source://excon//lib/excon/error.rb#9
|
662
|
-
class Excon::Error::Warning < ::Excon::Error; end
|
663
|
-
|
664
|
-
# Legacy
|
665
|
-
#
|
666
|
-
# source://excon//lib/excon/error.rb#199
|
667
|
-
module Excon::Errors
|
668
|
-
class << self
|
669
|
-
# source://excon//lib/excon/error.rb#225
|
670
|
-
def status_error(request, response); end
|
671
|
-
end
|
672
|
-
end
|
673
|
-
|
674
|
-
# source://excon//lib/excon/error.rb#222
|
675
|
-
Excon::Errors::Accepted = Excon::Error::Accepted
|
676
|
-
|
677
|
-
# source://excon//lib/excon/error.rb#222
|
678
|
-
Excon::Errors::BadGateway = Excon::Error::BadGateway
|
679
|
-
|
680
|
-
# source://excon//lib/excon/error.rb#222
|
681
|
-
Excon::Errors::BadRequest = Excon::Error::BadRequest
|
682
|
-
|
683
|
-
# source://excon//lib/excon/error.rb#222
|
684
|
-
Excon::Errors::CertificateError = Excon::Error::Certificate
|
685
|
-
|
686
|
-
# source://excon//lib/excon/error.rb#222
|
687
|
-
Excon::Errors::ClientError = Excon::Error::Client
|
688
|
-
|
689
|
-
# source://excon//lib/excon/error.rb#222
|
690
|
-
Excon::Errors::Conflict = Excon::Error::Conflict
|
691
|
-
|
692
|
-
# source://excon//lib/excon/error.rb#222
|
693
|
-
Excon::Errors::Continue = Excon::Error::Continue
|
694
|
-
|
695
|
-
# source://excon//lib/excon/error.rb#222
|
696
|
-
Excon::Errors::Created = Excon::Error::Created
|
697
|
-
|
698
|
-
# source://excon//lib/excon/error.rb#200
|
699
|
-
Excon::Errors::Error = Excon::Error
|
700
|
-
|
701
|
-
# source://excon//lib/excon/error.rb#222
|
702
|
-
Excon::Errors::ExpectationFailed = Excon::Error::ExpectationFailed
|
703
|
-
|
704
|
-
# source://excon//lib/excon/error.rb#222
|
705
|
-
Excon::Errors::Forbidden = Excon::Error::Forbidden
|
706
|
-
|
707
|
-
# source://excon//lib/excon/error.rb#222
|
708
|
-
Excon::Errors::Found = Excon::Error::Found
|
709
|
-
|
710
|
-
# source://excon//lib/excon/error.rb#222
|
711
|
-
Excon::Errors::GatewayTimeout = Excon::Error::GatewayTimeout
|
712
|
-
|
713
|
-
# source://excon//lib/excon/error.rb#222
|
714
|
-
Excon::Errors::Gone = Excon::Error::Gone
|
715
|
-
|
716
|
-
# source://excon//lib/excon/error.rb#222
|
717
|
-
Excon::Errors::HTTPStatusError = Excon::Error::HTTPStatus
|
718
|
-
|
719
|
-
# source://excon//lib/excon/error.rb#222
|
720
|
-
Excon::Errors::Informational = Excon::Error::Informational
|
721
|
-
|
722
|
-
# source://excon//lib/excon/error.rb#222
|
723
|
-
Excon::Errors::InternalServerError = Excon::Error::InternalServerError
|
724
|
-
|
725
|
-
# source://excon//lib/excon/error.rb#222
|
726
|
-
Excon::Errors::InvalidHeaderKey = Excon::Error::InvalidHeaderKey
|
727
|
-
|
728
|
-
# source://excon//lib/excon/error.rb#222
|
729
|
-
Excon::Errors::InvalidHeaderValue = Excon::Error::InvalidHeaderValue
|
730
|
-
|
731
|
-
# source://excon//lib/excon/error.rb#222
|
732
|
-
Excon::Errors::InvalidStub = Excon::Error::InvalidStub
|
733
|
-
|
734
|
-
# source://excon//lib/excon/error.rb#222
|
735
|
-
Excon::Errors::LengthRequired = Excon::Error::LengthRequired
|
736
|
-
|
737
|
-
# source://excon//lib/excon/error.rb#222
|
738
|
-
Excon::Errors::MethodNotAllowed = Excon::Error::MethodNotAllowed
|
739
|
-
|
740
|
-
# source://excon//lib/excon/error.rb#222
|
741
|
-
Excon::Errors::MovedPermanently = Excon::Error::MovedPermanently
|
742
|
-
|
743
|
-
# source://excon//lib/excon/error.rb#222
|
744
|
-
Excon::Errors::MultipleChoices = Excon::Error::MultipleChoices
|
745
|
-
|
746
|
-
# source://excon//lib/excon/error.rb#222
|
747
|
-
Excon::Errors::NoContent = Excon::Error::NoContent
|
748
|
-
|
749
|
-
# source://excon//lib/excon/error.rb#222
|
750
|
-
Excon::Errors::NonAuthoritativeInformation = Excon::Error::NonAuthoritativeInformation
|
751
|
-
|
752
|
-
# source://excon//lib/excon/error.rb#222
|
753
|
-
Excon::Errors::NotAcceptable = Excon::Error::NotAcceptable
|
754
|
-
|
755
|
-
# source://excon//lib/excon/error.rb#222
|
756
|
-
Excon::Errors::NotFound = Excon::Error::NotFound
|
757
|
-
|
758
|
-
# source://excon//lib/excon/error.rb#222
|
759
|
-
Excon::Errors::NotImplemented = Excon::Error::NotImplemented
|
760
|
-
|
761
|
-
# source://excon//lib/excon/error.rb#222
|
762
|
-
Excon::Errors::NotModified = Excon::Error::NotModified
|
763
|
-
|
764
|
-
# source://excon//lib/excon/error.rb#222
|
765
|
-
Excon::Errors::OK = Excon::Error::OK
|
766
|
-
|
767
|
-
# source://excon//lib/excon/error.rb#222
|
768
|
-
Excon::Errors::PartialContent = Excon::Error::PartialContent
|
769
|
-
|
770
|
-
# source://excon//lib/excon/error.rb#222
|
771
|
-
Excon::Errors::PaymentRequired = Excon::Error::PaymentRequired
|
772
|
-
|
773
|
-
# source://excon//lib/excon/error.rb#222
|
774
|
-
Excon::Errors::PreconditionFailed = Excon::Error::PreconditionFailed
|
775
|
-
|
776
|
-
# source://excon//lib/excon/error.rb#222
|
777
|
-
Excon::Errors::ProxyAuthenticationRequired = Excon::Error::ProxyAuthenticationRequired
|
778
|
-
|
779
|
-
# source://excon//lib/excon/error.rb#222
|
780
|
-
Excon::Errors::ProxyConnectionError = Excon::Error::ProxyConnectionError
|
781
|
-
|
782
|
-
# source://excon//lib/excon/error.rb#222
|
783
|
-
Excon::Errors::ProxyParse = Excon::Error::ProxyParse
|
784
|
-
|
785
|
-
# source://excon//lib/excon/error.rb#222
|
786
|
-
Excon::Errors::Redirection = Excon::Error::Redirection
|
787
|
-
|
788
|
-
# source://excon//lib/excon/error.rb#222
|
789
|
-
Excon::Errors::RequestEntityTooLarge = Excon::Error::RequestEntityTooLarge
|
790
|
-
|
791
|
-
# source://excon//lib/excon/error.rb#222
|
792
|
-
Excon::Errors::RequestTimeout = Excon::Error::RequestTimeout
|
793
|
-
|
794
|
-
# source://excon//lib/excon/error.rb#222
|
795
|
-
Excon::Errors::RequestURITooLong = Excon::Error::RequestURITooLong
|
796
|
-
|
797
|
-
# source://excon//lib/excon/error.rb#222
|
798
|
-
Excon::Errors::RequestedRangeNotSatisfiable = Excon::Error::RequestedRangeNotSatisfiable
|
799
|
-
|
800
|
-
# source://excon//lib/excon/error.rb#222
|
801
|
-
Excon::Errors::ResetContent = Excon::Error::ResetContent
|
802
|
-
|
803
|
-
# source://excon//lib/excon/error.rb#222
|
804
|
-
Excon::Errors::ResponseParse = Excon::Error::ResponseParse
|
805
|
-
|
806
|
-
# source://excon//lib/excon/error.rb#222
|
807
|
-
Excon::Errors::SeeOther = Excon::Error::SeeOther
|
808
|
-
|
809
|
-
# source://excon//lib/excon/error.rb#222
|
810
|
-
Excon::Errors::ServerError = Excon::Error::Server
|
811
|
-
|
812
|
-
# source://excon//lib/excon/error.rb#222
|
813
|
-
Excon::Errors::ServiceUnavailable = Excon::Error::ServiceUnavailable
|
814
|
-
|
815
|
-
# source://excon//lib/excon/error.rb#222
|
816
|
-
Excon::Errors::SocketError = Excon::Error::Socket
|
817
|
-
|
818
|
-
# source://excon//lib/excon/error.rb#222
|
819
|
-
Excon::Errors::StubNotFound = Excon::Error::StubNotFound
|
820
|
-
|
821
|
-
# source://excon//lib/excon/error.rb#222
|
822
|
-
Excon::Errors::Success = Excon::Error::Success
|
823
|
-
|
824
|
-
# source://excon//lib/excon/error.rb#222
|
825
|
-
Excon::Errors::SwitchingProtocols = Excon::Error::SwitchingProtocols
|
826
|
-
|
827
|
-
# source://excon//lib/excon/error.rb#222
|
828
|
-
Excon::Errors::TemporaryRedirect = Excon::Error::TemporaryRedirect
|
829
|
-
|
830
|
-
# source://excon//lib/excon/error.rb#222
|
831
|
-
Excon::Errors::Timeout = Excon::Error::Timeout
|
832
|
-
|
833
|
-
# source://excon//lib/excon/error.rb#222
|
834
|
-
Excon::Errors::TooManyRedirects = Excon::Error::TooManyRedirects
|
835
|
-
|
836
|
-
# source://excon//lib/excon/error.rb#222
|
837
|
-
Excon::Errors::TooManyRequests = Excon::Error::TooManyRequests
|
838
|
-
|
839
|
-
# source://excon//lib/excon/error.rb#222
|
840
|
-
Excon::Errors::Unauthorized = Excon::Error::Unauthorized
|
841
|
-
|
842
|
-
# source://excon//lib/excon/error.rb#222
|
843
|
-
Excon::Errors::UnprocessableEntity = Excon::Error::UnprocessableEntity
|
844
|
-
|
845
|
-
# source://excon//lib/excon/error.rb#222
|
846
|
-
Excon::Errors::UnsupportedMediaType = Excon::Error::UnsupportedMediaType
|
847
|
-
|
848
|
-
# source://excon//lib/excon/error.rb#222
|
849
|
-
Excon::Errors::UseProxy = Excon::Error::UseProxy
|
850
|
-
|
851
|
-
# source://excon//lib/excon/error.rb#222
|
852
|
-
Excon::Errors::Warning = Excon::Error::Warning
|
853
|
-
|
854
|
-
# source://excon//lib/excon/constants.rb#24
|
855
|
-
Excon::FORCE_ENC = T.let(T.unsafe(nil), TrueClass)
|
856
|
-
|
857
|
-
# source://excon//lib/excon/constants.rb#30
|
858
|
-
Excon::HTTPS = T.let(T.unsafe(nil), String)
|
859
|
-
|
860
|
-
# source://excon//lib/excon/constants.rb#26
|
861
|
-
Excon::HTTP_1_1 = T.let(T.unsafe(nil), String)
|
862
|
-
|
863
|
-
# source://excon//lib/excon/constants.rb#28
|
864
|
-
Excon::HTTP_VERBS = T.let(T.unsafe(nil), Array)
|
865
|
-
|
866
|
-
# source://excon//lib/excon/headers.rb#3
|
867
|
-
class Excon::Headers < ::Hash
|
868
|
-
# @return [Headers] a new instance of Headers
|
869
|
-
#
|
870
|
-
# source://excon//lib/excon/headers.rb#24
|
871
|
-
def initialize; end
|
872
|
-
|
873
|
-
# source://excon//lib/excon/headers.rb#29
|
874
|
-
def [](key); end
|
875
|
-
|
876
|
-
# source://excon//lib/excon/headers.rb#33
|
877
|
-
def []=(key, value); end
|
878
|
-
|
879
|
-
# source://excon//lib/excon/headers.rb#40
|
880
|
-
def assoc(obj); end
|
881
|
-
|
882
|
-
# source://excon//lib/excon/headers.rb#45
|
883
|
-
def delete(key, &proc); end
|
884
|
-
|
885
|
-
# source://excon//lib/excon/headers.rb#50
|
886
|
-
def fetch(key, default = T.unsafe(nil), &proc); end
|
887
|
-
|
888
|
-
# @return [Boolean]
|
889
|
-
#
|
890
|
-
# source://excon//lib/excon/headers.rb#58
|
891
|
-
def has_key?(key); end
|
892
|
-
|
893
|
-
# @return [Boolean]
|
894
|
-
#
|
895
|
-
# source://excon//lib/excon/headers.rb#58
|
896
|
-
def key?(key); end
|
897
|
-
|
898
|
-
# @return [Boolean]
|
899
|
-
#
|
900
|
-
# source://excon//lib/excon/headers.rb#58
|
901
|
-
def member?(key); end
|
902
|
-
|
903
|
-
# source://excon//lib/excon/headers.rb#64
|
904
|
-
def merge(other_hash); end
|
905
|
-
|
906
|
-
# source://excon//lib/excon/headers.rb#68
|
907
|
-
def merge!(other_hash); end
|
908
|
-
|
909
|
-
def raw_assoc(_arg0); end
|
910
|
-
def raw_delete(_arg0); end
|
911
|
-
def raw_fetch(*_arg0); end
|
912
|
-
def raw_has_key?(_arg0); end
|
913
|
-
def raw_include?(_arg0); end
|
914
|
-
def raw_key?(_arg0); end
|
915
|
-
def raw_member?(_arg0); end
|
916
|
-
def raw_merge(*_arg0); end
|
917
|
-
def raw_merge!(*_arg0); end
|
918
|
-
def raw_reader(_arg0); end
|
919
|
-
def raw_rehash; end
|
920
|
-
def raw_store(_arg0, _arg1); end
|
921
|
-
def raw_values_at(*_arg0); end
|
922
|
-
def raw_writer(_arg0, _arg1); end
|
923
|
-
|
924
|
-
# source://excon//lib/excon/headers.rb#75
|
925
|
-
def rehash; end
|
926
|
-
|
927
|
-
# source://excon//lib/excon/headers.rb#33
|
928
|
-
def store(key, value); end
|
929
|
-
|
930
|
-
# source://excon//lib/excon/headers.rb#80
|
931
|
-
def values_at(*keys); end
|
932
|
-
end
|
933
|
-
|
934
|
-
# source://excon//lib/excon/headers.rb#5
|
935
|
-
Excon::Headers::SENTINEL = T.let(T.unsafe(nil), Hash)
|
936
|
-
|
937
|
-
# source://excon//lib/excon/instrumentors/logging_instrumentor.rb#4
|
938
|
-
class Excon::LoggingInstrumentor
|
939
|
-
class << self
|
940
|
-
# source://excon//lib/excon/instrumentors/logging_instrumentor.rb#6
|
941
|
-
def instrument(name, params = T.unsafe(nil)); end
|
942
|
-
end
|
943
|
-
end
|
944
|
-
|
945
|
-
# source://excon//lib/excon/middlewares/base.rb#3
|
946
|
-
module Excon::Middleware; end
|
947
|
-
|
948
|
-
# source://excon//lib/excon/middlewares/base.rb#4
|
949
|
-
class Excon::Middleware::Base
|
950
|
-
# @return [Base] a new instance of Base
|
951
|
-
#
|
952
|
-
# source://excon//lib/excon/middlewares/base.rb#11
|
953
|
-
def initialize(stack); end
|
954
|
-
|
955
|
-
# source://excon//lib/excon/middlewares/base.rb#15
|
956
|
-
def error_call(datum); end
|
957
|
-
|
958
|
-
# source://excon//lib/excon/middlewares/base.rb#20
|
959
|
-
def request_call(datum); end
|
960
|
-
|
961
|
-
# source://excon//lib/excon/middlewares/base.rb#25
|
962
|
-
def response_call(datum); end
|
963
|
-
|
964
|
-
class << self
|
965
|
-
# Returns the list of parameters that this middleware uses that are valid
|
966
|
-
# as arguments to `Connection#request` or `Connection#new`.
|
967
|
-
#
|
968
|
-
# source://excon//lib/excon/middlewares/base.rb#7
|
969
|
-
def valid_parameter_keys; end
|
970
|
-
end
|
971
|
-
end
|
972
|
-
|
973
|
-
# source://excon//lib/excon/middlewares/capture_cookies.rb#4
|
974
|
-
class Excon::Middleware::CaptureCookies < ::Excon::Middleware::Base
|
975
|
-
# source://excon//lib/excon/middlewares/capture_cookies.rb#6
|
976
|
-
def extract_cookies_from_set_cookie(set_cookie); end
|
977
|
-
|
978
|
-
# source://excon//lib/excon/middlewares/capture_cookies.rb#10
|
979
|
-
def get_header(datum, header); end
|
980
|
-
|
981
|
-
# source://excon//lib/excon/middlewares/capture_cookies.rb#17
|
982
|
-
def response_call(datum); end
|
983
|
-
end
|
984
|
-
|
985
|
-
# source://excon//lib/excon/middlewares/decompress.rb#5
|
986
|
-
class Excon::Middleware::Decompress < ::Excon::Middleware::Base
|
987
|
-
# source://excon//lib/excon/middlewares/decompress.rb#9
|
988
|
-
def request_call(datum); end
|
989
|
-
|
990
|
-
# source://excon//lib/excon/middlewares/decompress.rb#17
|
991
|
-
def response_call(datum); end
|
992
|
-
end
|
993
|
-
|
994
|
-
# Zlib::MAX_WBITS * -1
|
995
|
-
#
|
996
|
-
# source://excon//lib/excon/middlewares/decompress.rb#7
|
997
|
-
Excon::Middleware::Decompress::INFLATE_RAW = T.let(T.unsafe(nil), Integer)
|
998
|
-
|
999
|
-
# Zlib::MAX_WBITS + 32
|
1000
|
-
#
|
1001
|
-
# source://excon//lib/excon/middlewares/decompress.rb#6
|
1002
|
-
Excon::Middleware::Decompress::INFLATE_ZLIB_OR_GZIP = T.let(T.unsafe(nil), Integer)
|
1003
|
-
|
1004
|
-
# source://excon//lib/excon/middlewares/escape_path.rb#4
|
1005
|
-
class Excon::Middleware::EscapePath < ::Excon::Middleware::Base
|
1006
|
-
# source://excon//lib/excon/middlewares/escape_path.rb#5
|
1007
|
-
def request_call(datum); end
|
1008
|
-
end
|
1009
|
-
|
1010
|
-
# source://excon//lib/excon/middlewares/expects.rb#4
|
1011
|
-
class Excon::Middleware::Expects < ::Excon::Middleware::Base
|
1012
|
-
# source://excon//lib/excon/middlewares/expects.rb#11
|
1013
|
-
def response_call(datum); end
|
1014
|
-
|
1015
|
-
class << self
|
1016
|
-
# source://excon//lib/excon/middlewares/expects.rb#5
|
1017
|
-
def valid_parameter_keys; end
|
1018
|
-
end
|
1019
|
-
end
|
1020
|
-
|
1021
|
-
# source://excon//lib/excon/middlewares/idempotent.rb#6
|
1022
|
-
class Excon::Middleware::Idempotent < ::Excon::Middleware::Base
|
1023
|
-
# source://excon//lib/excon/middlewares/idempotent.rb#22
|
1024
|
-
def error_call(datum); end
|
1025
|
-
|
1026
|
-
# source://excon//lib/excon/middlewares/idempotent.rb#17
|
1027
|
-
def request_call(datum); end
|
1028
|
-
|
1029
|
-
class << self
|
1030
|
-
# source://excon//lib/excon/middlewares/idempotent.rb#7
|
1031
|
-
def valid_parameter_keys; end
|
1032
|
-
end
|
1033
|
-
end
|
1034
|
-
|
1035
|
-
# source://excon//lib/excon/middlewares/instrumentor.rb#4
|
1036
|
-
class Excon::Middleware::Instrumentor < ::Excon::Middleware::Base
|
1037
|
-
# source://excon//lib/excon/middlewares/instrumentor.rb#13
|
1038
|
-
def error_call(datum); end
|
1039
|
-
|
1040
|
-
# source://excon//lib/excon/middlewares/instrumentor.rb#23
|
1041
|
-
def request_call(datum); end
|
1042
|
-
|
1043
|
-
# source://excon//lib/excon/middlewares/instrumentor.rb#38
|
1044
|
-
def response_call(datum); end
|
1045
|
-
|
1046
|
-
class << self
|
1047
|
-
# source://excon//lib/excon/middlewares/instrumentor.rb#5
|
1048
|
-
def valid_parameter_keys; end
|
1049
|
-
end
|
1050
|
-
end
|
1051
|
-
|
1052
|
-
# source://excon//lib/excon/middlewares/mock.rb#4
|
1053
|
-
class Excon::Middleware::Mock < ::Excon::Middleware::Base
|
1054
|
-
# source://excon//lib/excon/middlewares/mock.rb#13
|
1055
|
-
def request_call(datum); end
|
1056
|
-
|
1057
|
-
class << self
|
1058
|
-
# source://excon//lib/excon/middlewares/mock.rb#5
|
1059
|
-
def valid_parameter_keys; end
|
1060
|
-
end
|
1061
|
-
end
|
1062
|
-
|
1063
|
-
# source://excon//lib/excon/middlewares/redirect_follower.rb#4
|
1064
|
-
class Excon::Middleware::RedirectFollower < ::Excon::Middleware::Base
|
1065
|
-
# source://excon//lib/excon/middlewares/redirect_follower.rb#18
|
1066
|
-
def get_header(datum, header); end
|
1067
|
-
|
1068
|
-
# source://excon//lib/excon/middlewares/redirect_follower.rb#12
|
1069
|
-
def request_call(datum); end
|
1070
|
-
|
1071
|
-
# source://excon//lib/excon/middlewares/redirect_follower.rb#25
|
1072
|
-
def response_call(datum); end
|
1073
|
-
|
1074
|
-
class << self
|
1075
|
-
# source://excon//lib/excon/middlewares/redirect_follower.rb#5
|
1076
|
-
def valid_parameter_keys; end
|
1077
|
-
end
|
1078
|
-
end
|
1079
|
-
|
1080
|
-
# source://excon//lib/excon/middlewares/response_parser.rb#4
|
1081
|
-
class Excon::Middleware::ResponseParser < ::Excon::Middleware::Base
|
1082
|
-
# source://excon//lib/excon/middlewares/response_parser.rb#5
|
1083
|
-
def response_call(datum); end
|
1084
|
-
end
|
1085
|
-
|
1086
|
-
# source://excon//lib/excon/constants.rb#32
|
1087
|
-
Excon::NO_ENTITY = T.let(T.unsafe(nil), Array)
|
1088
|
-
|
1089
|
-
# source://excon//lib/excon/pretty_printer.rb#3
|
1090
|
-
class Excon::PrettyPrinter
|
1091
|
-
class << self
|
1092
|
-
# source://excon//lib/excon/pretty_printer.rb#4
|
1093
|
-
def pp(io, datum, indent = T.unsafe(nil)); end
|
1094
|
-
end
|
1095
|
-
end
|
1096
|
-
|
1097
|
-
# source://excon//lib/excon/constants.rb#34
|
1098
|
-
Excon::REDACTED = T.let(T.unsafe(nil), String)
|
1099
|
-
|
1100
|
-
# source://excon//lib/excon/response.rb#3
|
1101
|
-
class Excon::Response
|
1102
|
-
# @return [Response] a new instance of Response
|
1103
|
-
#
|
1104
|
-
# source://excon//lib/excon/response.rb#213
|
1105
|
-
def initialize(params = T.unsafe(nil)); end
|
1106
|
-
|
1107
|
-
# source://excon//lib/excon/response.rb#227
|
1108
|
-
def [](key); end
|
1109
|
-
|
1110
|
-
# source://excon//lib/excon/response.rb#11
|
1111
|
-
def body; end
|
1112
|
-
|
1113
|
-
# backwards compatability reader/writers
|
1114
|
-
#
|
1115
|
-
# source://excon//lib/excon/response.rb#8
|
1116
|
-
def body=(new_body); end
|
1117
|
-
|
1118
|
-
# Returns the value of attribute data.
|
1119
|
-
#
|
1120
|
-
# source://excon//lib/excon/response.rb#5
|
1121
|
-
def data; end
|
1122
|
-
|
1123
|
-
# Sets the attribute data
|
1124
|
-
#
|
1125
|
-
# @param value the value to set the attribute data to.
|
1126
|
-
#
|
1127
|
-
# source://excon//lib/excon/response.rb#5
|
1128
|
-
def data=(_arg0); end
|
1129
|
-
|
1130
|
-
# Retrieve a specific header value. Header names are treated case-insensitively.
|
1131
|
-
#
|
1132
|
-
# @param name [String] Header name
|
1133
|
-
#
|
1134
|
-
# source://excon//lib/excon/response.rb#242
|
1135
|
-
def get_header(name); end
|
1136
|
-
|
1137
|
-
# source://excon//lib/excon/response.rb#17
|
1138
|
-
def headers; end
|
1139
|
-
|
1140
|
-
# source://excon//lib/excon/response.rb#14
|
1141
|
-
def headers=(new_headers); end
|
1142
|
-
|
1143
|
-
# source://excon//lib/excon/response.rb#20
|
1144
|
-
def host; end
|
1145
|
-
|
1146
|
-
# can't be named "method"
|
1147
|
-
#
|
1148
|
-
# source://excon//lib/excon/response.rb#32
|
1149
|
-
def http_method; end
|
1150
|
-
|
1151
|
-
# source://excon//lib/excon/response.rb#26
|
1152
|
-
def local_address; end
|
1153
|
-
|
1154
|
-
# source://excon//lib/excon/response.rb#29
|
1155
|
-
def local_port; end
|
1156
|
-
|
1157
|
-
# source://excon//lib/excon/response.rb#231
|
1158
|
-
def params; end
|
1159
|
-
|
1160
|
-
# source://excon//lib/excon/response.rb#35
|
1161
|
-
def path; end
|
1162
|
-
|
1163
|
-
# source://excon//lib/excon/response.rb#41
|
1164
|
-
def port; end
|
1165
|
-
|
1166
|
-
# source://excon//lib/excon/response.rb#236
|
1167
|
-
def pp; end
|
1168
|
-
|
1169
|
-
# source://excon//lib/excon/response.rb#38
|
1170
|
-
def query; end
|
1171
|
-
|
1172
|
-
# source://excon//lib/excon/response.rb#47
|
1173
|
-
def reason_phrase; end
|
1174
|
-
|
1175
|
-
# source://excon//lib/excon/response.rb#44
|
1176
|
-
def reason_phrase=(new_reason_phrase); end
|
1177
|
-
|
1178
|
-
# source://excon//lib/excon/response.rb#53
|
1179
|
-
def remote_ip; end
|
1180
|
-
|
1181
|
-
# source://excon//lib/excon/response.rb#50
|
1182
|
-
def remote_ip=(new_remote_ip); end
|
1183
|
-
|
1184
|
-
# source://excon//lib/excon/response.rb#23
|
1185
|
-
def scheme; end
|
1186
|
-
|
1187
|
-
# source://excon//lib/excon/response.rb#59
|
1188
|
-
def status; end
|
1189
|
-
|
1190
|
-
# source://excon//lib/excon/response.rb#56
|
1191
|
-
def status=(new_status); end
|
1192
|
-
|
1193
|
-
# source://excon//lib/excon/response.rb#62
|
1194
|
-
def status_line; end
|
1195
|
-
|
1196
|
-
# source://excon//lib/excon/response.rb#65
|
1197
|
-
def status_line=(new_status_line); end
|
1198
|
-
|
1199
|
-
class << self
|
1200
|
-
# source://excon//lib/excon/response.rb#69
|
1201
|
-
def parse(socket, datum); end
|
1202
|
-
|
1203
|
-
# source://excon//lib/excon/response.rb#193
|
1204
|
-
def parse_headers(socket, datum); end
|
1205
|
-
end
|
1206
|
-
end
|
1207
|
-
|
1208
|
-
# source://excon//lib/excon/ssl_socket.rb#3
|
1209
|
-
class Excon::SSLSocket < ::Excon::Socket
|
1210
|
-
# @return [SSLSocket] a new instance of SSLSocket
|
1211
|
-
#
|
1212
|
-
# source://excon//lib/excon/ssl_socket.rb#8
|
1213
|
-
def initialize(data = T.unsafe(nil)); end
|
1214
|
-
|
1215
|
-
private
|
1216
|
-
|
1217
|
-
# source://excon//lib/excon/ssl_socket.rb#172
|
1218
|
-
def client_cert_data; end
|
1219
|
-
|
1220
|
-
# source://excon//lib/excon/ssl_socket.rb#183
|
1221
|
-
def client_chain_data; end
|
1222
|
-
|
1223
|
-
# source://excon//lib/excon/ssl_socket.rb#197
|
1224
|
-
def client_key_data; end
|
1225
|
-
|
1226
|
-
# source://excon//lib/excon/ssl_socket.rb#208
|
1227
|
-
def client_key_pass; end
|
1228
|
-
|
1229
|
-
# source://excon//lib/excon/ssl_socket.rb#191
|
1230
|
-
def connect; end
|
1231
|
-
end
|
1232
|
-
|
1233
|
-
# source://excon//lib/excon/ssl_socket.rb#4
|
1234
|
-
Excon::SSLSocket::HAVE_NONBLOCK = T.let(T.unsafe(nil), TrueClass)
|
1235
|
-
|
1236
|
-
# source://excon//lib/excon/socket.rb#5
|
1237
|
-
class Excon::Socket
|
1238
|
-
include ::Excon::Utils
|
1239
|
-
extend ::Forwardable
|
1240
|
-
|
1241
|
-
# @return [Socket] a new instance of Socket
|
1242
|
-
#
|
1243
|
-
# source://excon//lib/excon/socket.rb#51
|
1244
|
-
def initialize(data = T.unsafe(nil)); end
|
1245
|
-
|
1246
|
-
# source://forwardable/1.3.3/forwardable.rb#231
|
1247
|
-
def close(*args, **_arg1, &block); end
|
1248
|
-
|
1249
|
-
# Returns the value of attribute data.
|
1250
|
-
#
|
1251
|
-
# source://excon//lib/excon/socket.rb#10
|
1252
|
-
def data; end
|
1253
|
-
|
1254
|
-
# Sets the attribute data
|
1255
|
-
#
|
1256
|
-
# @param value the value to set the attribute data to.
|
1257
|
-
#
|
1258
|
-
# source://excon//lib/excon/socket.rb#10
|
1259
|
-
def data=(_arg0); end
|
1260
|
-
|
1261
|
-
# source://excon//lib/excon/socket.rb#112
|
1262
|
-
def local_address; end
|
1263
|
-
|
1264
|
-
# source://excon//lib/excon/socket.rb#116
|
1265
|
-
def local_port; end
|
1266
|
-
|
1267
|
-
# source://excon//lib/excon/socket.rb#36
|
1268
|
-
def params; end
|
1269
|
-
|
1270
|
-
# source://excon//lib/excon/socket.rb#41
|
1271
|
-
def params=(new_params); end
|
1272
|
-
|
1273
|
-
# source://excon//lib/excon/socket.rb#63
|
1274
|
-
def read(max_length = T.unsafe(nil)); end
|
1275
|
-
|
1276
|
-
# source://excon//lib/excon/socket.rb#73
|
1277
|
-
def readline; end
|
1278
|
-
|
1279
|
-
# Returns the value of attribute remote_ip.
|
1280
|
-
#
|
1281
|
-
# source://excon//lib/excon/socket.rb#46
|
1282
|
-
def remote_ip; end
|
1283
|
-
|
1284
|
-
# source://excon//lib/excon/socket.rb#104
|
1285
|
-
def write(data); end
|
1286
|
-
|
1287
|
-
private
|
1288
|
-
|
1289
|
-
# source://excon//lib/excon/socket.rb#122
|
1290
|
-
def connect; end
|
1291
|
-
|
1292
|
-
# Consume any bytes remaining in the read buffer before making a system call.
|
1293
|
-
#
|
1294
|
-
# source://excon//lib/excon/socket.rb#212
|
1295
|
-
def consume_read_buffer; end
|
1296
|
-
|
1297
|
-
# source://excon//lib/excon/socket.rb#300
|
1298
|
-
def read_block(max_length); end
|
1299
|
-
|
1300
|
-
# source://excon//lib/excon/socket.rb#227
|
1301
|
-
def read_nonblock(max_length); end
|
1302
|
-
|
1303
|
-
# source://excon//lib/excon/socket.rb#296
|
1304
|
-
def readable_bytes; end
|
1305
|
-
|
1306
|
-
# Returns the remaining time in seconds until we reach the deadline for the request timeout.
|
1307
|
-
# Raises an exception if we have exceeded the request timeout's deadline.
|
1308
|
-
#
|
1309
|
-
# @raise [Excon::Errors::Timeout]
|
1310
|
-
#
|
1311
|
-
# source://excon//lib/excon/socket.rb#399
|
1312
|
-
def request_time_remaining; end
|
1313
|
-
|
1314
|
-
# Rewind the read buffer to just after the given index.
|
1315
|
-
# The offset is moved back to the start of the current chunk and then forward until just after the index.
|
1316
|
-
#
|
1317
|
-
# source://excon//lib/excon/socket.rb#222
|
1318
|
-
def rewind_read_buffer(chunk, idx); end
|
1319
|
-
|
1320
|
-
# source://excon//lib/excon/socket.rb#359
|
1321
|
-
def select_with_timeout(socket, type); end
|
1322
|
-
|
1323
|
-
# source://excon//lib/excon/socket.rb#389
|
1324
|
-
def unpacked_sockaddr; end
|
1325
|
-
|
1326
|
-
# source://excon//lib/excon/socket.rb#349
|
1327
|
-
def write_block(data); end
|
1328
|
-
|
1329
|
-
# source://excon//lib/excon/socket.rb#314
|
1330
|
-
def write_nonblock(data); end
|
1331
|
-
end
|
1332
|
-
|
1333
|
-
# read/write drawn from https://github.com/ruby-amqp/bunny/commit/75d9dd79551b31a5dd3d1254c537bad471f108cf
|
1334
|
-
#
|
1335
|
-
# source://excon//lib/excon/socket.rb#13
|
1336
|
-
Excon::Socket::CONNECT_RETRY_EXCEPTION_CLASSES = T.let(T.unsafe(nil), Array)
|
1337
|
-
|
1338
|
-
# Maps a socket operation to a timeout property.
|
1339
|
-
#
|
1340
|
-
# source://excon//lib/excon/socket.rb#29
|
1341
|
-
Excon::Socket::OPERATION_TO_TIMEOUT = T.let(T.unsafe(nil), Hash)
|
1342
|
-
|
1343
|
-
# Ruby >= 2.1
|
1344
|
-
#
|
1345
|
-
# source://excon//lib/excon/socket.rb#18
|
1346
|
-
Excon::Socket::READ_RETRY_EXCEPTION_CLASSES = T.let(T.unsafe(nil), Array)
|
1347
|
-
|
1348
|
-
# Ruby >= 2.1
|
1349
|
-
#
|
1350
|
-
# source://excon//lib/excon/socket.rb#23
|
1351
|
-
Excon::Socket::WRITE_RETRY_EXCEPTION_CLASSES = T.let(T.unsafe(nil), Array)
|
1352
|
-
|
1353
|
-
# source://excon//lib/excon/instrumentors/standard_instrumentor.rb#3
|
1354
|
-
class Excon::StandardInstrumentor
|
1355
|
-
class << self
|
1356
|
-
# source://excon//lib/excon/instrumentors/standard_instrumentor.rb#4
|
1357
|
-
def instrument(name, params = T.unsafe(nil)); end
|
1358
|
-
end
|
1359
|
-
end
|
1360
|
-
|
1361
|
-
# source://excon//lib/excon/constants.rb#36
|
1362
|
-
Excon::UNIX = T.let(T.unsafe(nil), String)
|
1363
|
-
|
1364
|
-
# source://excon//lib/excon/constants.rb#38
|
1365
|
-
Excon::USER_AGENT = T.let(T.unsafe(nil), String)
|
1366
|
-
|
1367
|
-
# source://excon//lib/excon/unix_socket.rb#3
|
1368
|
-
class Excon::UnixSocket < ::Excon::Socket
|
1369
|
-
private
|
1370
|
-
|
1371
|
-
# source://excon//lib/excon/unix_socket.rb#7
|
1372
|
-
def connect; end
|
1373
|
-
end
|
1374
|
-
|
1375
|
-
# source://excon//lib/excon/utils.rb#4
|
1376
|
-
module Excon::Utils
|
1377
|
-
private
|
1378
|
-
|
1379
|
-
# source://excon//lib/excon/utils.rb#14
|
1380
|
-
def binary_encode(string); end
|
1381
|
-
|
1382
|
-
# source://excon//lib/excon/utils.rb#26
|
1383
|
-
def connection_uri(datum = T.unsafe(nil)); end
|
1384
|
-
|
1385
|
-
# source://excon//lib/excon/utils.rb#66
|
1386
|
-
def default_port?(datum); end
|
1387
|
-
|
1388
|
-
# Escapes HTTP reserved and unwise characters in +str+
|
1389
|
-
#
|
1390
|
-
# source://excon//lib/excon/utils.rb#105
|
1391
|
-
def escape_uri(str); end
|
1392
|
-
|
1393
|
-
# Performs validation on the passed header hash and returns a string representation of the headers
|
1394
|
-
#
|
1395
|
-
# source://excon//lib/excon/utils.rb#127
|
1396
|
-
def headers_hash_to_s(headers); end
|
1397
|
-
|
1398
|
-
# source://excon//lib/excon/utils.rb#58
|
1399
|
-
def port_string(datum); end
|
1400
|
-
|
1401
|
-
# source://excon//lib/excon/utils.rb#72
|
1402
|
-
def query_string(datum); end
|
1403
|
-
|
1404
|
-
# Redact sensitive info from provided data
|
1405
|
-
#
|
1406
|
-
# source://excon//lib/excon/utils.rb#37
|
1407
|
-
def redact(datum); end
|
1408
|
-
|
1409
|
-
# source://excon//lib/excon/utils.rb#54
|
1410
|
-
def request_uri(datum); end
|
1411
|
-
|
1412
|
-
# Splits a header value +str+ according to HTTP specification.
|
1413
|
-
#
|
1414
|
-
# source://excon//lib/excon/utils.rb#95
|
1415
|
-
def split_header_value(str); end
|
1416
|
-
|
1417
|
-
# Unescape form encoded values in +str+
|
1418
|
-
#
|
1419
|
-
# source://excon//lib/excon/utils.rb#119
|
1420
|
-
def unescape_form(str); end
|
1421
|
-
|
1422
|
-
# Unescapes HTTP reserved and unwise characters in +str+
|
1423
|
-
#
|
1424
|
-
# source://excon//lib/excon/utils.rb#112
|
1425
|
-
def unescape_uri(str); end
|
1426
|
-
|
1427
|
-
class << self
|
1428
|
-
# source://excon//lib/excon/utils.rb#14
|
1429
|
-
def binary_encode(string); end
|
1430
|
-
|
1431
|
-
# @raise [ArgumentError]
|
1432
|
-
#
|
1433
|
-
# source://excon//lib/excon/utils.rb#26
|
1434
|
-
def connection_uri(datum = T.unsafe(nil)); end
|
1435
|
-
|
1436
|
-
# @return [Boolean]
|
1437
|
-
#
|
1438
|
-
# source://excon//lib/excon/utils.rb#66
|
1439
|
-
def default_port?(datum); end
|
1440
|
-
|
1441
|
-
# Escapes HTTP reserved and unwise characters in +str+
|
1442
|
-
#
|
1443
|
-
# source://excon//lib/excon/utils.rb#105
|
1444
|
-
def escape_uri(str); end
|
1445
|
-
|
1446
|
-
# Performs validation on the passed header hash and returns a string representation of the headers
|
1447
|
-
#
|
1448
|
-
# source://excon//lib/excon/utils.rb#127
|
1449
|
-
def headers_hash_to_s(headers); end
|
1450
|
-
|
1451
|
-
# source://excon//lib/excon/utils.rb#58
|
1452
|
-
def port_string(datum); end
|
1453
|
-
|
1454
|
-
# source://excon//lib/excon/utils.rb#72
|
1455
|
-
def query_string(datum); end
|
1456
|
-
|
1457
|
-
# Redact sensitive info from provided data
|
1458
|
-
#
|
1459
|
-
# source://excon//lib/excon/utils.rb#37
|
1460
|
-
def redact(datum); end
|
1461
|
-
|
1462
|
-
# source://excon//lib/excon/utils.rb#54
|
1463
|
-
def request_uri(datum); end
|
1464
|
-
|
1465
|
-
# Splits a header value +str+ according to HTTP specification.
|
1466
|
-
#
|
1467
|
-
# source://excon//lib/excon/utils.rb#95
|
1468
|
-
def split_header_value(str); end
|
1469
|
-
|
1470
|
-
# Unescape form encoded values in +str+
|
1471
|
-
#
|
1472
|
-
# source://excon//lib/excon/utils.rb#119
|
1473
|
-
def unescape_form(str); end
|
1474
|
-
|
1475
|
-
# Unescapes HTTP reserved and unwise characters in +str+
|
1476
|
-
#
|
1477
|
-
# source://excon//lib/excon/utils.rb#112
|
1478
|
-
def unescape_uri(str); end
|
1479
|
-
end
|
1480
|
-
end
|
1481
|
-
|
1482
|
-
# source://excon//lib/excon/utils.rb#7
|
1483
|
-
Excon::Utils::CONTROL = T.let(T.unsafe(nil), String)
|
1484
|
-
|
1485
|
-
# source://excon//lib/excon/utils.rb#8
|
1486
|
-
Excon::Utils::DELIMS = T.let(T.unsafe(nil), String)
|
1487
|
-
|
1488
|
-
# source://excon//lib/excon/utils.rb#12
|
1489
|
-
Excon::Utils::ESCAPED = T.let(T.unsafe(nil), Regexp)
|
1490
|
-
|
1491
|
-
# source://excon//lib/excon/utils.rb#10
|
1492
|
-
Excon::Utils::NONASCII = T.let(T.unsafe(nil), String)
|
1493
|
-
|
1494
|
-
# source://excon//lib/excon/utils.rb#11
|
1495
|
-
Excon::Utils::UNESCAPED = T.let(T.unsafe(nil), Regexp)
|
1496
|
-
|
1497
|
-
# source://excon//lib/excon/utils.rb#9
|
1498
|
-
Excon::Utils::UNWISE = T.let(T.unsafe(nil), String)
|
1499
|
-
|
1500
|
-
# FIXME: should be frozen, but with a way to change them, similar to defaults
|
1501
|
-
#
|
1502
|
-
# source://excon//lib/excon/constants.rb#72
|
1503
|
-
Excon::VALID_CONNECTION_KEYS = T.let(T.unsafe(nil), Array)
|
1504
|
-
|
1505
|
-
# FIXME: should be frozen, but with a way to change them, similar to defaults
|
1506
|
-
#
|
1507
|
-
# source://excon//lib/excon/constants.rb#43
|
1508
|
-
Excon::VALID_REQUEST_KEYS = T.let(T.unsafe(nil), Array)
|
1509
|
-
|
1510
|
-
# source://excon//lib/excon/version.rb#4
|
1511
|
-
Excon::VERSION = T.let(T.unsafe(nil), String)
|
1512
|
-
|
1513
|
-
# source://excon//lib/excon/constants.rb#40
|
1514
|
-
Excon::VERSIONS = T.let(T.unsafe(nil), String)
|