blob: 66f69291c3c410ad65ed596c52033aecca00505e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
module WEBrick
module HTTPServlet
class ProcHandler < AbstractServlet
interface _Callable
def call: (WEBrick::HTTPRequest, WEBrick::HTTPResponse) -> void
end
@proc: _Callable
def get_instance: (HTTPServer server, *untyped options) -> self
def initialize: (_Callable proc) -> void
def do_GET: (HTTPRequest request, HTTPResponse response) -> void
alias do_POST do_GET
alias do_PUT do_GET
end
end
end
|