File: https.rbs

package info (click to toggle)
ruby-webrick 1.9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 748 kB
  • sloc: ruby: 7,783; sh: 4; makefile: 4
file content (49 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
module WEBrick
  class HTTPRequest
    @client_cert_chain: Array[OpenSSL::X509::Certificate]

    attr_reader cipher: [String, String, Integer, Integer]?

    attr_reader server_cert: OpenSSL::X509::Certificate

    attr_reader client_cert: OpenSSL::X509::Certificate?

    alias orig_parse parse

    def parse: (?(TCPSocket | OpenSSL::SSL::SSLSocket)? socket) -> void
             | ...

    alias orig_parse_uri parse_uri

    private

    def parse_uri: (String str, ?::String scheme) -> URI::Generic
                 | ...

    public

    alias orig_meta_vars meta_vars

    def meta_vars: () -> Hash[String, String]
                 | ...
  end

  class SNIRequest
    attr_reader host: String?

    attr_reader addr: [String, Integer, String, String]

    attr_reader port: Integer

    def initialize: (OpenSSL::SSL::SSLSocket sslsocket, ?String? hostname) -> void
  end

  class HTTPServer < ::WEBrick::GenericServer
    def ssl_servername_callback: (OpenSSL::SSL::SSLSocket sslsocket, ?String? hostname) -> OpenSSL::SSL::SSLContext?

    alias orig_virtual_host virtual_host

    def virtual_host: (instance server) -> void
                    | ...
  end
end