Files

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
346:     def initialize(socket, *args)
347:       super(*args)
348:       @socket = socket
349:     end

Public Instance Methods

<<(str) click to toggle source
     # File lib/httpclient/session.rb, line 380
380:     def <<(str)
381:       @socket << str
382:     end
close() click to toggle source
     # File lib/httpclient/session.rb, line 351
351:     def close
352:       @socket.close
353:     end
closed?() click to toggle source
     # File lib/httpclient/session.rb, line 355
355:     def closed?
356:       @socket.closed?
357:     end
eof?() click to toggle source
     # File lib/httpclient/session.rb, line 359
359:     def eof?
360:       @socket.eof?
361:     end
flush() click to toggle source
     # File lib/httpclient/session.rb, line 384
384:     def flush
385:       @socket.flush
386:     end
gets(*args) click to toggle source
     # File lib/httpclient/session.rb, line 363
363:     def gets(*args)
364:       @socket.gets(*args)
365:     end
read(*args) click to toggle source
     # File lib/httpclient/session.rb, line 367
367:     def read(*args)
368:       @socket.read(*args)
369:     end
readpartial(*args) click to toggle source
     # File lib/httpclient/session.rb, line 371
371:     def readpartial(*args)
372:       # StringIO doesn't support :readpartial
373:       if @socket.respond_to?(:readpartial)
374:         @socket.readpartial(*args)
375:       else
376:         @socket.read(*args)
377:       end
378:     end
sync() click to toggle source
     # File lib/httpclient/session.rb, line 388
388:     def sync
389:       @socket.sync
390:     end
sync=(sync) click to toggle source
     # File lib/httpclient/session.rb, line 392
392:     def sync=(sync)
393:       @socket.sync = sync
394:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.