Module: HTTPClient::DebugSocket

Extended by:
SocketWrap
Defined in:
lib/httpclient.rb

Overview

HTTPClient::DebugSocket – debugging support

Instance Method Summary collapse

Methods included from SocketWrap

addr, closed?, eof?, flush, initialize, sync, sync=

Instance Method Details

#<<(str) ⇒ Object



1204
1205
1206
1207
# File 'lib/httpclient.rb', line 1204

def <<(str)
  super
  debug(str)
end

#closeObject



1187
1188
1189
1190
# File 'lib/httpclient.rb', line 1187

def close
  super
  debug("! CONNECTION CLOSED\n")
end

#debug_dev=(debug_dev) ⇒ Object



1183
1184
1185
# File 'lib/httpclient.rb', line 1183

def debug_dev=(debug_dev)
  @debug_dev = debug_dev
end

#gets(*args) ⇒ Object



1192
1193
1194
1195
1196
# File 'lib/httpclient.rb', line 1192

def gets(*args)
  str = super
  debug(str)
  str
end

#read(*args) ⇒ Object



1198
1199
1200
1201
1202
# File 'lib/httpclient.rb', line 1198

def read(*args)
  str = super
  debug(str)
  str
end