Files

Class/Module Index [+]

Quicksearch

HTTPClient::SocketWrap

Wraps up a Socket for method interception.

Public Class Methods

new(socket, *args) click to toggle source
# File lib/httpclient/session.rb, line 346
def initialize(socket, *args)
  super(*args)
  @socket = socket
end

Public Instance Methods

<<(str) click to toggle source
# File lib/httpclient/session.rb, line 380
def <<(str)
  @socket << str
end
close() click to toggle source
# File lib/httpclient/session.rb, line 351
def close
  @socket.close
end
closed?() click to toggle source
# File lib/httpclient/session.rb, line 355
def closed?
  @socket.closed?
end
eof?() click to toggle source
# File lib/httpclient/session.rb, line 359
def eof?
  @socket.eof?
end
flush() click to toggle source
# File lib/httpclient/session.rb, line 384
def flush
  @socket.flush
end
gets(*args) click to toggle source
# File lib/httpclient/session.rb, line 363
def gets(*args)
  @socket.gets(*args)
end
read(*args) click to toggle source
# File lib/httpclient/session.rb, line 367
def read(*args)
  @socket.read(*args)
end
readpartial(*args) click to toggle source
# File lib/httpclient/session.rb, line 371
def readpartial(*args)
  # StringIO doesn't support :readpartial
  if @socket.respond_to?(:readpartial)
    @socket.readpartial(*args)
  else
    @socket.read(*args)
  end
end
sync() click to toggle source
# File lib/httpclient/session.rb, line 388
def sync
  @socket.sync
end
sync=(sync) click to toggle source
# File lib/httpclient/session.rb, line 392
def sync=(sync)
  @socket.sync = sync
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.