ech_config 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ci.yml +34 -0
- data/.gitignore +16 -0
- data/.rubocop.yml +34 -0
- data/.ruby-version +1 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +73 -0
- data/LICENSE.txt +21 -0
- data/README.md +22 -0
- data/Rakefile +16 -0
- data/ech_config.gemspec +24 -0
- data/example/README.md +9 -0
- data/example/well_known_url_client.rb +29 -0
- data/lib/ech_config/ech_config_contents/extensions.rb +24 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_kem_id.rb +24 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_public_key.rb +22 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite/hpke_aead_id.rb +24 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite/hpke_kdf_id.rb +24 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config/hpke_symmetric_cipher_suite.rb +41 -0
- data/lib/ech_config/ech_config_contents/hpke_key_config.rb +82 -0
- data/lib/ech_config/ech_config_contents.rb +78 -0
- data/lib/ech_config/error.rb +11 -0
- data/lib/ech_config/version.rb +6 -0
- data/lib/ech_config.rb +62 -0
- data/sorbet/config +3 -0
- data/sorbet/rbi/gems/ast.rbi +49 -0
- data/sorbet/rbi/gems/byebug.rbi +1041 -0
- data/sorbet/rbi/gems/ech_config.rbi +22 -0
- data/sorbet/rbi/gems/parallel.rbi +86 -0
- data/sorbet/rbi/gems/parser.rbi +1477 -0
- data/sorbet/rbi/gems/rainbow.rbi +122 -0
- data/sorbet/rbi/gems/rake.rbi +646 -0
- data/sorbet/rbi/gems/regexp_parser.rbi +984 -0
- data/sorbet/rbi/gems/rexml.rbi +599 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1947 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1178 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1096 -0
- data/sorbet/rbi/gems/rspec-support.rbi +282 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/rubocop-ast.rbi +1399 -0
- data/sorbet/rbi/gems/rubocop-sorbet.rbi +218 -0
- data/sorbet/rbi/gems/rubocop.rbi +9351 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +23 -0
- data/sorbet/rbi/gems/webrick.rbi +662 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +22890 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +12118 -0
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +276 -0
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +24 -0
- data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +12 -0
- data/sorbet/rbi/todo.rbi +6 -0
- data/spec/hpke_key_config_spec.rb +32 -0
- data/spec/spec_helper.rb +6 -0
- metadata +126 -0
@@ -0,0 +1,662 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strict
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/webrick/all/webrick.rbi
|
9
|
+
#
|
10
|
+
# webrick-1.7.0
|
11
|
+
|
12
|
+
module Errno
|
13
|
+
end
|
14
|
+
class Errno::EPROTO < SystemCallError
|
15
|
+
end
|
16
|
+
class Errno::ECONNRESET < SystemCallError
|
17
|
+
end
|
18
|
+
class Errno::ECONNABORTED < SystemCallError
|
19
|
+
end
|
20
|
+
module WEBrick
|
21
|
+
end
|
22
|
+
class WEBrick::HTTPVersion
|
23
|
+
def <=>(other); end
|
24
|
+
def initialize(version); end
|
25
|
+
def major; end
|
26
|
+
def major=(arg0); end
|
27
|
+
def minor; end
|
28
|
+
def minor=(arg0); end
|
29
|
+
def self.convert(version); end
|
30
|
+
def to_s; end
|
31
|
+
include Comparable
|
32
|
+
end
|
33
|
+
module WEBrick::HTTPUtils
|
34
|
+
def _escape(str, regex); end
|
35
|
+
def _make_regex!(str); end
|
36
|
+
def _make_regex(str); end
|
37
|
+
def _unescape(str, regex); end
|
38
|
+
def dequote(str); end
|
39
|
+
def escape(str); end
|
40
|
+
def escape8bit(str); end
|
41
|
+
def escape_form(str); end
|
42
|
+
def escape_path(str); end
|
43
|
+
def load_mime_types(file); end
|
44
|
+
def mime_type(filename, mime_tab); end
|
45
|
+
def normalize_path(path); end
|
46
|
+
def parse_form_data(io, boundary); end
|
47
|
+
def parse_header(raw); end
|
48
|
+
def parse_query(str); end
|
49
|
+
def parse_qvalues(value); end
|
50
|
+
def parse_range_header(ranges_specifier); end
|
51
|
+
def quote(str); end
|
52
|
+
def self._escape(str, regex); end
|
53
|
+
def self._make_regex!(str); end
|
54
|
+
def self._make_regex(str); end
|
55
|
+
def self._unescape(str, regex); end
|
56
|
+
def self.dequote(str); end
|
57
|
+
def self.escape(str); end
|
58
|
+
def self.escape8bit(str); end
|
59
|
+
def self.escape_form(str); end
|
60
|
+
def self.escape_path(str); end
|
61
|
+
def self.load_mime_types(file); end
|
62
|
+
def self.mime_type(filename, mime_tab); end
|
63
|
+
def self.normalize_path(path); end
|
64
|
+
def self.parse_form_data(io, boundary); end
|
65
|
+
def self.parse_header(raw); end
|
66
|
+
def self.parse_query(str); end
|
67
|
+
def self.parse_qvalues(value); end
|
68
|
+
def self.parse_range_header(ranges_specifier); end
|
69
|
+
def self.quote(str); end
|
70
|
+
def self.split_header_value(str); end
|
71
|
+
def self.unescape(str); end
|
72
|
+
def self.unescape_form(str); end
|
73
|
+
def split_header_value(str); end
|
74
|
+
def unescape(str); end
|
75
|
+
def unescape_form(str); end
|
76
|
+
end
|
77
|
+
class WEBrick::HTTPUtils::FormData < String
|
78
|
+
def <<(str); end
|
79
|
+
def [](*key); end
|
80
|
+
def append_data(data); end
|
81
|
+
def each_data; end
|
82
|
+
def filename; end
|
83
|
+
def filename=(arg0); end
|
84
|
+
def initialize(*args); end
|
85
|
+
def list; end
|
86
|
+
def name; end
|
87
|
+
def name=(arg0); end
|
88
|
+
def next_data; end
|
89
|
+
def next_data=(arg0); end
|
90
|
+
def to_ary; end
|
91
|
+
def to_s; end
|
92
|
+
end
|
93
|
+
module WEBrick::Utils
|
94
|
+
def create_listeners(address, port); end
|
95
|
+
def getservername; end
|
96
|
+
def random_string(len); end
|
97
|
+
def self.create_listeners(address, port); end
|
98
|
+
def self.getservername; end
|
99
|
+
def self.random_string(len); end
|
100
|
+
def self.set_close_on_exec(io); end
|
101
|
+
def self.set_non_blocking(io); end
|
102
|
+
def self.su(user); end
|
103
|
+
def self.timeout(seconds, exception = nil); end
|
104
|
+
def set_close_on_exec(io); end
|
105
|
+
def set_non_blocking(io); end
|
106
|
+
def su(user); end
|
107
|
+
def timeout(seconds, exception = nil); end
|
108
|
+
end
|
109
|
+
class WEBrick::Utils::TimeoutHandler
|
110
|
+
def cancel(thread, id); end
|
111
|
+
def initialize; end
|
112
|
+
def interrupt(thread, id, exception); end
|
113
|
+
def register(thread, time, exception); end
|
114
|
+
def self.allocate; end
|
115
|
+
def self.cancel(id); end
|
116
|
+
def self.new(*arg0, **); end
|
117
|
+
def self.register(seconds, exception); end
|
118
|
+
def self.terminate; end
|
119
|
+
def terminate; end
|
120
|
+
def watch; end
|
121
|
+
def watcher; end
|
122
|
+
extend Singleton::SingletonClassMethods
|
123
|
+
include Singleton
|
124
|
+
end
|
125
|
+
class WEBrick::BasicLog
|
126
|
+
def <<(obj); end
|
127
|
+
def close; end
|
128
|
+
def debug(msg); end
|
129
|
+
def debug?; end
|
130
|
+
def error(msg); end
|
131
|
+
def error?; end
|
132
|
+
def fatal(msg); end
|
133
|
+
def fatal?; end
|
134
|
+
def format(arg); end
|
135
|
+
def info(msg); end
|
136
|
+
def info?; end
|
137
|
+
def initialize(log_file = nil, level = nil); end
|
138
|
+
def level; end
|
139
|
+
def level=(arg0); end
|
140
|
+
def log(level, data); end
|
141
|
+
def warn(msg); end
|
142
|
+
def warn?; end
|
143
|
+
end
|
144
|
+
class WEBrick::Log < WEBrick::BasicLog
|
145
|
+
def initialize(log_file = nil, level = nil); end
|
146
|
+
def log(level, data); end
|
147
|
+
def time_format; end
|
148
|
+
def time_format=(arg0); end
|
149
|
+
end
|
150
|
+
module WEBrick::Config
|
151
|
+
end
|
152
|
+
class WEBrick::ServerError < StandardError
|
153
|
+
end
|
154
|
+
class WEBrick::SimpleServer
|
155
|
+
def self.start; end
|
156
|
+
end
|
157
|
+
class WEBrick::Daemon
|
158
|
+
def self.start; end
|
159
|
+
end
|
160
|
+
class WEBrick::GenericServer
|
161
|
+
def [](key); end
|
162
|
+
def accept_client(svr); end
|
163
|
+
def alarm_shutdown_pipe; end
|
164
|
+
def call_callback(callback_name, *args); end
|
165
|
+
def cleanup_listener; end
|
166
|
+
def cleanup_shutdown_pipe(shutdown_pipe); end
|
167
|
+
def config; end
|
168
|
+
def initialize(config = nil, default = nil); end
|
169
|
+
def listen(address, port); end
|
170
|
+
def listeners; end
|
171
|
+
def logger; end
|
172
|
+
def run(sock); end
|
173
|
+
def setup_shutdown_pipe; end
|
174
|
+
def shutdown; end
|
175
|
+
def start(&block); end
|
176
|
+
def start_thread(sock, &block); end
|
177
|
+
def status; end
|
178
|
+
def stop; end
|
179
|
+
def tokens; end
|
180
|
+
end
|
181
|
+
module WEBrick::AccessLog
|
182
|
+
def escape(data); end
|
183
|
+
def format(format_string, params); end
|
184
|
+
def self.escape(data); end
|
185
|
+
def self.format(format_string, params); end
|
186
|
+
def self.setup_params(config, req, res); end
|
187
|
+
def setup_params(config, req, res); end
|
188
|
+
end
|
189
|
+
class WEBrick::AccessLog::AccessLogError < StandardError
|
190
|
+
end
|
191
|
+
module WEBrick::HTMLUtils
|
192
|
+
def escape(string); end
|
193
|
+
def self.escape(string); end
|
194
|
+
end
|
195
|
+
class WEBrick::Cookie
|
196
|
+
def comment; end
|
197
|
+
def comment=(arg0); end
|
198
|
+
def domain; end
|
199
|
+
def domain=(arg0); end
|
200
|
+
def expires; end
|
201
|
+
def expires=(t); end
|
202
|
+
def initialize(name, value); end
|
203
|
+
def max_age; end
|
204
|
+
def max_age=(arg0); end
|
205
|
+
def name; end
|
206
|
+
def path; end
|
207
|
+
def path=(arg0); end
|
208
|
+
def secure; end
|
209
|
+
def secure=(arg0); end
|
210
|
+
def self.parse(str); end
|
211
|
+
def self.parse_set_cookie(str); end
|
212
|
+
def self.parse_set_cookies(str); end
|
213
|
+
def to_s; end
|
214
|
+
def value; end
|
215
|
+
def value=(arg0); end
|
216
|
+
def version; end
|
217
|
+
def version=(arg0); end
|
218
|
+
end
|
219
|
+
module WEBrick::HTTPStatus
|
220
|
+
def client_error?(code); end
|
221
|
+
def error?(code); end
|
222
|
+
def info?(code); end
|
223
|
+
def reason_phrase(code); end
|
224
|
+
def redirect?(code); end
|
225
|
+
def self.[](code); end
|
226
|
+
def self.client_error?(code); end
|
227
|
+
def self.error?(code); end
|
228
|
+
def self.info?(code); end
|
229
|
+
def self.reason_phrase(code); end
|
230
|
+
def self.redirect?(code); end
|
231
|
+
def self.server_error?(code); end
|
232
|
+
def self.success?(code); end
|
233
|
+
def server_error?(code); end
|
234
|
+
def success?(code); end
|
235
|
+
end
|
236
|
+
class WEBrick::HTTPStatus::Status < StandardError
|
237
|
+
def code; end
|
238
|
+
def reason_phrase; end
|
239
|
+
def self.code; end
|
240
|
+
def self.reason_phrase; end
|
241
|
+
def to_i; end
|
242
|
+
end
|
243
|
+
class WEBrick::HTTPStatus::Info < WEBrick::HTTPStatus::Status
|
244
|
+
end
|
245
|
+
class WEBrick::HTTPStatus::Success < WEBrick::HTTPStatus::Status
|
246
|
+
end
|
247
|
+
class WEBrick::HTTPStatus::Redirect < WEBrick::HTTPStatus::Status
|
248
|
+
end
|
249
|
+
class WEBrick::HTTPStatus::Error < WEBrick::HTTPStatus::Status
|
250
|
+
end
|
251
|
+
class WEBrick::HTTPStatus::ClientError < WEBrick::HTTPStatus::Error
|
252
|
+
end
|
253
|
+
class WEBrick::HTTPStatus::ServerError < WEBrick::HTTPStatus::Error
|
254
|
+
end
|
255
|
+
class WEBrick::HTTPStatus::EOFError < StandardError
|
256
|
+
end
|
257
|
+
class WEBrick::HTTPStatus::Continue < WEBrick::HTTPStatus::Info
|
258
|
+
end
|
259
|
+
class WEBrick::HTTPStatus::SwitchingProtocols < WEBrick::HTTPStatus::Info
|
260
|
+
end
|
261
|
+
class WEBrick::HTTPStatus::OK < WEBrick::HTTPStatus::Success
|
262
|
+
end
|
263
|
+
class WEBrick::HTTPStatus::Created < WEBrick::HTTPStatus::Success
|
264
|
+
end
|
265
|
+
class WEBrick::HTTPStatus::Accepted < WEBrick::HTTPStatus::Success
|
266
|
+
end
|
267
|
+
class WEBrick::HTTPStatus::NonAuthoritativeInformation < WEBrick::HTTPStatus::Success
|
268
|
+
end
|
269
|
+
class WEBrick::HTTPStatus::NoContent < WEBrick::HTTPStatus::Success
|
270
|
+
end
|
271
|
+
class WEBrick::HTTPStatus::ResetContent < WEBrick::HTTPStatus::Success
|
272
|
+
end
|
273
|
+
class WEBrick::HTTPStatus::PartialContent < WEBrick::HTTPStatus::Success
|
274
|
+
end
|
275
|
+
class WEBrick::HTTPStatus::MultiStatus < WEBrick::HTTPStatus::Success
|
276
|
+
end
|
277
|
+
class WEBrick::HTTPStatus::MultipleChoices < WEBrick::HTTPStatus::Redirect
|
278
|
+
end
|
279
|
+
class WEBrick::HTTPStatus::MovedPermanently < WEBrick::HTTPStatus::Redirect
|
280
|
+
end
|
281
|
+
class WEBrick::HTTPStatus::Found < WEBrick::HTTPStatus::Redirect
|
282
|
+
end
|
283
|
+
class WEBrick::HTTPStatus::SeeOther < WEBrick::HTTPStatus::Redirect
|
284
|
+
end
|
285
|
+
class WEBrick::HTTPStatus::NotModified < WEBrick::HTTPStatus::Redirect
|
286
|
+
end
|
287
|
+
class WEBrick::HTTPStatus::UseProxy < WEBrick::HTTPStatus::Redirect
|
288
|
+
end
|
289
|
+
class WEBrick::HTTPStatus::TemporaryRedirect < WEBrick::HTTPStatus::Redirect
|
290
|
+
end
|
291
|
+
class WEBrick::HTTPStatus::BadRequest < WEBrick::HTTPStatus::ClientError
|
292
|
+
end
|
293
|
+
class WEBrick::HTTPStatus::Unauthorized < WEBrick::HTTPStatus::ClientError
|
294
|
+
end
|
295
|
+
class WEBrick::HTTPStatus::PaymentRequired < WEBrick::HTTPStatus::ClientError
|
296
|
+
end
|
297
|
+
class WEBrick::HTTPStatus::Forbidden < WEBrick::HTTPStatus::ClientError
|
298
|
+
end
|
299
|
+
class WEBrick::HTTPStatus::NotFound < WEBrick::HTTPStatus::ClientError
|
300
|
+
end
|
301
|
+
class WEBrick::HTTPStatus::MethodNotAllowed < WEBrick::HTTPStatus::ClientError
|
302
|
+
end
|
303
|
+
class WEBrick::HTTPStatus::NotAcceptable < WEBrick::HTTPStatus::ClientError
|
304
|
+
end
|
305
|
+
class WEBrick::HTTPStatus::ProxyAuthenticationRequired < WEBrick::HTTPStatus::ClientError
|
306
|
+
end
|
307
|
+
class WEBrick::HTTPStatus::RequestTimeout < WEBrick::HTTPStatus::ClientError
|
308
|
+
end
|
309
|
+
class WEBrick::HTTPStatus::Conflict < WEBrick::HTTPStatus::ClientError
|
310
|
+
end
|
311
|
+
class WEBrick::HTTPStatus::Gone < WEBrick::HTTPStatus::ClientError
|
312
|
+
end
|
313
|
+
class WEBrick::HTTPStatus::LengthRequired < WEBrick::HTTPStatus::ClientError
|
314
|
+
end
|
315
|
+
class WEBrick::HTTPStatus::PreconditionFailed < WEBrick::HTTPStatus::ClientError
|
316
|
+
end
|
317
|
+
class WEBrick::HTTPStatus::RequestEntityTooLarge < WEBrick::HTTPStatus::ClientError
|
318
|
+
end
|
319
|
+
class WEBrick::HTTPStatus::RequestURITooLarge < WEBrick::HTTPStatus::ClientError
|
320
|
+
end
|
321
|
+
class WEBrick::HTTPStatus::UnsupportedMediaType < WEBrick::HTTPStatus::ClientError
|
322
|
+
end
|
323
|
+
class WEBrick::HTTPStatus::RequestRangeNotSatisfiable < WEBrick::HTTPStatus::ClientError
|
324
|
+
end
|
325
|
+
class WEBrick::HTTPStatus::ExpectationFailed < WEBrick::HTTPStatus::ClientError
|
326
|
+
end
|
327
|
+
class WEBrick::HTTPStatus::UnprocessableEntity < WEBrick::HTTPStatus::ClientError
|
328
|
+
end
|
329
|
+
class WEBrick::HTTPStatus::Locked < WEBrick::HTTPStatus::ClientError
|
330
|
+
end
|
331
|
+
class WEBrick::HTTPStatus::FailedDependency < WEBrick::HTTPStatus::ClientError
|
332
|
+
end
|
333
|
+
class WEBrick::HTTPStatus::UpgradeRequired < WEBrick::HTTPStatus::ClientError
|
334
|
+
end
|
335
|
+
class WEBrick::HTTPStatus::PreconditionRequired < WEBrick::HTTPStatus::ClientError
|
336
|
+
end
|
337
|
+
class WEBrick::HTTPStatus::TooManyRequests < WEBrick::HTTPStatus::ClientError
|
338
|
+
end
|
339
|
+
class WEBrick::HTTPStatus::RequestHeaderFieldsTooLarge < WEBrick::HTTPStatus::ClientError
|
340
|
+
end
|
341
|
+
class WEBrick::HTTPStatus::UnavailableForLegalReasons < WEBrick::HTTPStatus::ClientError
|
342
|
+
end
|
343
|
+
class WEBrick::HTTPStatus::InternalServerError < WEBrick::HTTPStatus::ServerError
|
344
|
+
end
|
345
|
+
class WEBrick::HTTPStatus::NotImplemented < WEBrick::HTTPStatus::ServerError
|
346
|
+
end
|
347
|
+
class WEBrick::HTTPStatus::BadGateway < WEBrick::HTTPStatus::ServerError
|
348
|
+
end
|
349
|
+
class WEBrick::HTTPStatus::ServiceUnavailable < WEBrick::HTTPStatus::ServerError
|
350
|
+
end
|
351
|
+
class WEBrick::HTTPStatus::GatewayTimeout < WEBrick::HTTPStatus::ServerError
|
352
|
+
end
|
353
|
+
class WEBrick::HTTPStatus::HTTPVersionNotSupported < WEBrick::HTTPStatus::ServerError
|
354
|
+
end
|
355
|
+
class WEBrick::HTTPStatus::InsufficientStorage < WEBrick::HTTPStatus::ServerError
|
356
|
+
end
|
357
|
+
class WEBrick::HTTPStatus::NetworkAuthenticationRequired < WEBrick::HTTPStatus::ServerError
|
358
|
+
end
|
359
|
+
class WEBrick::HTTPRequest
|
360
|
+
def [](header_name); end
|
361
|
+
def _read_data(io, method, *arg); end
|
362
|
+
def accept; end
|
363
|
+
def accept_charset; end
|
364
|
+
def accept_encoding; end
|
365
|
+
def accept_language; end
|
366
|
+
def addr; end
|
367
|
+
def attributes; end
|
368
|
+
def body(&block); end
|
369
|
+
def body_reader; end
|
370
|
+
def content_length; end
|
371
|
+
def content_type; end
|
372
|
+
def continue; end
|
373
|
+
def cookies; end
|
374
|
+
def each; end
|
375
|
+
def fixup; end
|
376
|
+
def header; end
|
377
|
+
def host; end
|
378
|
+
def http_version; end
|
379
|
+
def initialize(config); end
|
380
|
+
def keep_alive; end
|
381
|
+
def keep_alive?; end
|
382
|
+
def meta_vars; end
|
383
|
+
def parse(socket = nil); end
|
384
|
+
def parse_query; end
|
385
|
+
def parse_uri(str, scheme = nil); end
|
386
|
+
def path; end
|
387
|
+
def path_info; end
|
388
|
+
def path_info=(arg0); end
|
389
|
+
def peeraddr; end
|
390
|
+
def port; end
|
391
|
+
def query; end
|
392
|
+
def query_string; end
|
393
|
+
def query_string=(arg0); end
|
394
|
+
def raw_header; end
|
395
|
+
def read_body(socket, block); end
|
396
|
+
def read_chunk_size(socket); end
|
397
|
+
def read_chunked(socket, block); end
|
398
|
+
def read_data(io, size); end
|
399
|
+
def read_header(socket); end
|
400
|
+
def read_line(io, size = nil); end
|
401
|
+
def read_request_line(socket); end
|
402
|
+
def readpartial(size, buf = nil); end
|
403
|
+
def remote_ip; end
|
404
|
+
def request_line; end
|
405
|
+
def request_method; end
|
406
|
+
def request_time; end
|
407
|
+
def request_uri; end
|
408
|
+
def script_name; end
|
409
|
+
def script_name=(arg0); end
|
410
|
+
def server_name; end
|
411
|
+
def setup_forwarded_info; end
|
412
|
+
def ssl?; end
|
413
|
+
def to_s; end
|
414
|
+
def unparsed_uri; end
|
415
|
+
def user; end
|
416
|
+
def user=(arg0); end
|
417
|
+
end
|
418
|
+
class WEBrick::HTTPResponse
|
419
|
+
def [](field); end
|
420
|
+
def []=(field, value); end
|
421
|
+
def _write_data(socket, data); end
|
422
|
+
def body; end
|
423
|
+
def body=(arg0); end
|
424
|
+
def check_header(header_value); end
|
425
|
+
def chunked=(val); end
|
426
|
+
def chunked?; end
|
427
|
+
def config; end
|
428
|
+
def content_length; end
|
429
|
+
def content_length=(len); end
|
430
|
+
def content_type; end
|
431
|
+
def content_type=(type); end
|
432
|
+
def cookies; end
|
433
|
+
def each; end
|
434
|
+
def error_body(backtrace, ex, host, port); end
|
435
|
+
def filename; end
|
436
|
+
def filename=(arg0); end
|
437
|
+
def header; end
|
438
|
+
def http_version; end
|
439
|
+
def initialize(config); end
|
440
|
+
def keep_alive; end
|
441
|
+
def keep_alive=(arg0); end
|
442
|
+
def keep_alive?; end
|
443
|
+
def make_body_tempfile; end
|
444
|
+
def reason_phrase; end
|
445
|
+
def reason_phrase=(arg0); end
|
446
|
+
def remove_body_tempfile; end
|
447
|
+
def request_http_version; end
|
448
|
+
def request_http_version=(arg0); end
|
449
|
+
def request_method; end
|
450
|
+
def request_method=(arg0); end
|
451
|
+
def request_uri; end
|
452
|
+
def request_uri=(arg0); end
|
453
|
+
def send_body(socket); end
|
454
|
+
def send_body_io(socket); end
|
455
|
+
def send_body_proc(socket); end
|
456
|
+
def send_body_string(socket); end
|
457
|
+
def send_header(socket); end
|
458
|
+
def send_response(socket); end
|
459
|
+
def sent_size; end
|
460
|
+
def set_error(ex, backtrace = nil); end
|
461
|
+
def set_redirect(status, url); end
|
462
|
+
def setup_header; end
|
463
|
+
def status; end
|
464
|
+
def status=(status); end
|
465
|
+
def status_line; end
|
466
|
+
end
|
467
|
+
class WEBrick::HTTPResponse::InvalidHeader < StandardError
|
468
|
+
end
|
469
|
+
class WEBrick::HTTPResponse::ChunkedWrapper
|
470
|
+
def <<(*buf); end
|
471
|
+
def initialize(socket, resp); end
|
472
|
+
def write(buf); end
|
473
|
+
end
|
474
|
+
module WEBrick::HTTPServlet
|
475
|
+
end
|
476
|
+
class WEBrick::HTTPServlet::HTTPServletError < StandardError
|
477
|
+
end
|
478
|
+
class WEBrick::HTTPServlet::AbstractServlet
|
479
|
+
def do_GET(req, res); end
|
480
|
+
def do_HEAD(req, res); end
|
481
|
+
def do_OPTIONS(req, res); end
|
482
|
+
def initialize(server, *options); end
|
483
|
+
def redirect_to_directory_uri(req, res); end
|
484
|
+
def self.get_instance(server, *options); end
|
485
|
+
def service(req, res); end
|
486
|
+
end
|
487
|
+
class WEBrick::HTTPServlet::DefaultFileHandler < WEBrick::HTTPServlet::AbstractServlet
|
488
|
+
def do_GET(req, res); end
|
489
|
+
def initialize(server, local_path); end
|
490
|
+
def make_partial_content(req, res, filename, filesize); end
|
491
|
+
def multipart_body(body, parts, boundary, mtype, filesize); end
|
492
|
+
def not_modified?(req, res, mtime, etag); end
|
493
|
+
def prepare_range(range, filesize); end
|
494
|
+
end
|
495
|
+
class WEBrick::HTTPServlet::FileHandler < WEBrick::HTTPServlet::AbstractServlet
|
496
|
+
def call_callback(callback_name, req, res); end
|
497
|
+
def check_filename(req, res, name); end
|
498
|
+
def do_GET(req, res); end
|
499
|
+
def do_OPTIONS(req, res); end
|
500
|
+
def do_POST(req, res); end
|
501
|
+
def exec_handler(req, res); end
|
502
|
+
def get_handler(req, res); end
|
503
|
+
def initialize(server, root, options = nil, default = nil); end
|
504
|
+
def nondisclosure_name?(name); end
|
505
|
+
def prevent_directory_traversal(req, res); end
|
506
|
+
def search_file(req, res, basename); end
|
507
|
+
def search_index_file(req, res); end
|
508
|
+
def self.add_handler(suffix, handler); end
|
509
|
+
def self.remove_handler(suffix); end
|
510
|
+
def service(req, res); end
|
511
|
+
def set_dir_list(req, res); end
|
512
|
+
def set_filename(req, res); end
|
513
|
+
def set_filesystem_encoding(str); end
|
514
|
+
def shift_path_info(req, res, path_info, base = nil); end
|
515
|
+
def trailing_pathsep?(path); end
|
516
|
+
def windows_ambiguous_name?(name); end
|
517
|
+
end
|
518
|
+
class WEBrick::HTTPServlet::CGIHandler < WEBrick::HTTPServlet::AbstractServlet
|
519
|
+
def do_GET(req, res); end
|
520
|
+
def do_POST(req, res); end
|
521
|
+
def initialize(server, name); end
|
522
|
+
end
|
523
|
+
class WEBrick::HTTPServlet::ERBHandler < WEBrick::HTTPServlet::AbstractServlet
|
524
|
+
def do_GET(req, res); end
|
525
|
+
def do_POST(req, res); end
|
526
|
+
def evaluate(erb, servlet_request, servlet_response); end
|
527
|
+
def initialize(server, name); end
|
528
|
+
end
|
529
|
+
class WEBrick::HTTPServlet::ProcHandler < WEBrick::HTTPServlet::AbstractServlet
|
530
|
+
def do_GET(request, response); end
|
531
|
+
def do_POST(request, response); end
|
532
|
+
def get_instance(server, *options); end
|
533
|
+
def initialize(proc); end
|
534
|
+
end
|
535
|
+
class WEBrick::HTTPServerError < WEBrick::ServerError
|
536
|
+
end
|
537
|
+
class WEBrick::HTTPServer < WEBrick::GenericServer
|
538
|
+
def access_log(config, req, res); end
|
539
|
+
def create_request(with_webrick_config); end
|
540
|
+
def create_response(with_webrick_config); end
|
541
|
+
def do_OPTIONS(req, res); end
|
542
|
+
def initialize(config = nil, default = nil); end
|
543
|
+
def lookup_server(req); end
|
544
|
+
def mount(dir, servlet, *options); end
|
545
|
+
def mount_proc(dir, proc = nil, &block); end
|
546
|
+
def run(sock); end
|
547
|
+
def search_servlet(path); end
|
548
|
+
def service(req, res); end
|
549
|
+
def umount(dir); end
|
550
|
+
def unmount(dir); end
|
551
|
+
def virtual_host(server); end
|
552
|
+
end
|
553
|
+
class WEBrick::HTTPServer::MountTable
|
554
|
+
def [](dir); end
|
555
|
+
def []=(dir, val); end
|
556
|
+
def compile; end
|
557
|
+
def delete(dir); end
|
558
|
+
def initialize; end
|
559
|
+
def normalize(dir); end
|
560
|
+
def scan(path); end
|
561
|
+
end
|
562
|
+
module WEBrick::HTTPAuth
|
563
|
+
def _basic_auth(req, res, realm, req_field, res_field, err_type, block); end
|
564
|
+
def basic_auth(req, res, realm, &block); end
|
565
|
+
def proxy_basic_auth(req, res, realm, &block); end
|
566
|
+
def self._basic_auth(req, res, realm, req_field, res_field, err_type, block); end
|
567
|
+
def self.basic_auth(req, res, realm, &block); end
|
568
|
+
def self.proxy_basic_auth(req, res, realm, &block); end
|
569
|
+
end
|
570
|
+
module WEBrick::HTTPAuth::Authenticator
|
571
|
+
def check_init(config); end
|
572
|
+
def check_scheme(req); end
|
573
|
+
def error(fmt, *args); end
|
574
|
+
def info(fmt, *args); end
|
575
|
+
def log(meth, fmt, *args); end
|
576
|
+
def logger; end
|
577
|
+
def realm; end
|
578
|
+
def userdb; end
|
579
|
+
end
|
580
|
+
module WEBrick::HTTPAuth::ProxyAuthenticator
|
581
|
+
end
|
582
|
+
class WEBrick::HTTPAuth::BasicAuth
|
583
|
+
def authenticate(req, res); end
|
584
|
+
def challenge(req, res); end
|
585
|
+
def initialize(config, default = nil); end
|
586
|
+
def logger; end
|
587
|
+
def realm; end
|
588
|
+
def self.make_passwd(realm, user, pass); end
|
589
|
+
def userdb; end
|
590
|
+
include WEBrick::HTTPAuth::Authenticator
|
591
|
+
end
|
592
|
+
class WEBrick::HTTPAuth::ProxyBasicAuth < WEBrick::HTTPAuth::BasicAuth
|
593
|
+
include WEBrick::HTTPAuth::ProxyAuthenticator
|
594
|
+
end
|
595
|
+
class WEBrick::HTTPAuth::DigestAuth
|
596
|
+
def _authenticate(req, res); end
|
597
|
+
def algorithm; end
|
598
|
+
def authenticate(req, res); end
|
599
|
+
def challenge(req, res, stale = nil); end
|
600
|
+
def check_nonce(req, auth_req); end
|
601
|
+
def check_opaque(opaque_struct, req, auth_req); end
|
602
|
+
def check_uri(req, auth_req); end
|
603
|
+
def generate_next_nonce(req); end
|
604
|
+
def generate_opaque(req); end
|
605
|
+
def hexdigest(*args); end
|
606
|
+
def initialize(config, default = nil); end
|
607
|
+
def qop; end
|
608
|
+
def self.make_passwd(realm, user, pass); end
|
609
|
+
def split_param_value(string); end
|
610
|
+
include WEBrick::HTTPAuth::Authenticator
|
611
|
+
end
|
612
|
+
class WEBrick::HTTPAuth::DigestAuth::OpaqueInfo < Struct
|
613
|
+
def nc; end
|
614
|
+
def nc=(_); end
|
615
|
+
def nonce; end
|
616
|
+
def nonce=(_); end
|
617
|
+
def self.[](*arg0); end
|
618
|
+
def self.inspect; end
|
619
|
+
def self.keyword_init?; end
|
620
|
+
def self.members; end
|
621
|
+
def self.new(*arg0); end
|
622
|
+
def time; end
|
623
|
+
def time=(_); end
|
624
|
+
end
|
625
|
+
class WEBrick::HTTPAuth::ProxyDigestAuth < WEBrick::HTTPAuth::DigestAuth
|
626
|
+
def check_uri(req, auth_req); end
|
627
|
+
include WEBrick::HTTPAuth::ProxyAuthenticator
|
628
|
+
end
|
629
|
+
module WEBrick::HTTPAuth::UserDB
|
630
|
+
def auth_type; end
|
631
|
+
def auth_type=(arg0); end
|
632
|
+
def get_passwd(realm, user, reload_db = nil); end
|
633
|
+
def make_passwd(realm, user, pass); end
|
634
|
+
def set_passwd(realm, user, pass); end
|
635
|
+
end
|
636
|
+
class WEBrick::HTTPAuth::Htpasswd
|
637
|
+
def delete_passwd(realm, user); end
|
638
|
+
def each; end
|
639
|
+
def flush(output = nil); end
|
640
|
+
def get_passwd(realm, user, reload_db); end
|
641
|
+
def initialize(path, password_hash: nil); end
|
642
|
+
def reload; end
|
643
|
+
def set_passwd(realm, user, pass); end
|
644
|
+
include WEBrick::HTTPAuth::UserDB
|
645
|
+
end
|
646
|
+
class WEBrick::HTTPAuth::Htdigest
|
647
|
+
def delete_passwd(realm, user); end
|
648
|
+
def each; end
|
649
|
+
def flush(output = nil); end
|
650
|
+
def get_passwd(realm, user, reload_db); end
|
651
|
+
def initialize(path); end
|
652
|
+
def reload; end
|
653
|
+
def set_passwd(realm, user, pass); end
|
654
|
+
include WEBrick::HTTPAuth::UserDB
|
655
|
+
end
|
656
|
+
class WEBrick::HTTPAuth::Htgroup
|
657
|
+
def add(group, members); end
|
658
|
+
def flush(output = nil); end
|
659
|
+
def initialize(path); end
|
660
|
+
def members(group); end
|
661
|
+
def reload; end
|
662
|
+
end
|