Net::HTTP::Conn (Class)

In: openssl/lib/net/https.rb
Parent: HTTPRequest

Methods

exec   new   request  

Constants

REQUEST_HAS_BODY = false
RESPONSE_HAS_BODY = false
METHOD = "connect"

Public Class methods

[Source]

# File openssl/lib/net/https.rb, line 111
      def initialize
        super nil, nil
      end

Public Instance methods

[Source]

# File openssl/lib/net/https.rb, line 115
      def exec( sock, addr, port, ver )
        @socket = sock
        request(addr, port, ver)
      end

[Source]

# File openssl/lib/net/https.rb, line 120
      def request( addr, port, ver )
        @socket.writeline sprintf('CONNECT %s:%s HTTP/%s', addr, port, ver)
        @socket.writeline ''
      end

[Validate]