Files

HTTPClient::DebugSocket

Module for intercepting Socket methods and dumps in/out to given debugging device. debug_dev must respond to <<.

Public Instance Methods

<<(str) click to toggle source
     # File lib/httpclient/session.rb, line 430
430:     def <<(str)
431:       super
432:       debug(str)
433:     end
close() click to toggle source
     # File lib/httpclient/session.rb, line 407
407:     def close
408:       super
409:       debug("! CONNECTION CLOSED\n")
410:     end
debug_dev=(debug_dev) click to toggle source
     # File lib/httpclient/session.rb, line 403
403:     def debug_dev=(debug_dev)
404:       @debug_dev = debug_dev
405:     end
gets(*args) click to toggle source
     # File lib/httpclient/session.rb, line 412
412:     def gets(*args)
413:       str = super
414:       debug(str)
415:       str
416:     end
read(*args) click to toggle source
     # File lib/httpclient/session.rb, line 418
418:     def read(*args)
419:       str = super
420:       debug(str)
421:       str
422:     end
readpartial(*args) click to toggle source
     # File lib/httpclient/session.rb, line 424
424:     def readpartial(*args)
425:       str = super
426:       debug(str)
427:       str
428:     end

Private Instance Methods

debug(str) click to toggle source
     # File lib/httpclient/session.rb, line 437
437:     def debug(str)
438:       @debug_dev << str if str && @debug_dev
439:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.