Class: WEBrick::SNIRequest
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/webrick/https.rb |
Class Method Summary
-
.new(sslsocket, hostname) ⇒ SNIRequest
constructor
Creates a new
SNIRequest
.
Instance Attribute Summary
Constructor Details
.new(sslsocket, hostname) ⇒ SNIRequest
Creates a new SNIRequest
.
# File 'lib/webrick/https.rb', line 113
def initialize(sslsocket, hostname) @host = hostname @addr = sslsocket.addr @port = @addr[1] end
Instance Attribute Details
#addr (readonly)
The socket address of the server
# File 'lib/webrick/https.rb', line 103
attr_reader :addr
#host (readonly)
The SNI hostname
# File 'lib/webrick/https.rb', line 98
attr_reader :host
#port (readonly)
The port this request is for
# File 'lib/webrick/https.rb', line 108
attr_reader :port