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 417 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 423 def <<(str) # ignored end
peer_cert()
click to toggle source
# File lib/httpclient/session.rb, line 427 def peer_cert nil end