123456789_123456789_123456789_123456789_123456789_

Class: WEBrick::SNIRequest

Relationships & Source Files
Inherits: Object
Defined in: lib/webrick/https.rb

Class Method Summary

Instance Attribute Summary

  • #addr readonly

    The socket address of the server.

  • #host readonly

    The SNI hostname.

  • #port readonly

    The port this request is for.

Constructor Details

.new(sslsocket, hostname) ⇒ SNIRequest

Creates a new SNIRequest.

[ GitHub ]

  
# 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

[ GitHub ]

  
# File 'lib/webrick/https.rb', line 103

attr_reader :addr

#host (readonly)

The SNI hostname

[ GitHub ]

  
# File 'lib/webrick/https.rb', line 98

attr_reader :host

#port (readonly)

The port this request is for

[ GitHub ]

  
# File 'lib/webrick/https.rb', line 108

attr_reader :port