class HTTPClient::LoopBackSocket

Dummy Socket for emulating loopback test.

Public Class Methods

new(host, port, response) click to toggle source
Calls superclass method HTTPClient::SocketWrap.new
# File lib/httpclient/session.rb, line 408
def initialize(host, port, response)
  super(response.is_a?(StringIO) ? response : StringIO.new(response))
  @host = host
  @port = port
end

Public Instance Methods

<<(str) click to toggle source
# File lib/httpclient/session.rb, line 414
def <<(str)
  # ignored
end
peer_cert() click to toggle source
# File lib/httpclient/session.rb, line 418
def peer_cert
  nil
end