Class: HTTPClient::LoopBackSocket
- Inherits:
-
Object
- Object
- HTTPClient::LoopBackSocket
- Includes:
- SocketWrap
- Defined in:
- lib/httpclient/session.rb
Overview
Dummy Socket for emulating loopback test.
Instance Method Summary collapse
- #<<(str) ⇒ Object
-
#initialize(host, port, response) ⇒ LoopBackSocket
constructor
A new instance of LoopBackSocket.
Methods included from SocketWrap
#close, #closed?, #eof?, #flush, #gets, #read, #readpartial, #sync, #sync=
Constructor Details
#initialize(host, port, response) ⇒ LoopBackSocket
Returns a new instance of LoopBackSocket.
473 474 475 476 477 |
# File 'lib/httpclient/session.rb', line 473 def initialize(host, port, response) super(response.is_a?(StringIO) ? response : StringIO.new(response)) @host = host @port = port end |
Instance Method Details
#<<(str) ⇒ Object
479 480 481 |
# File 'lib/httpclient/session.rb', line 479 def <<(str) # ignored end |