Module: HTTPClient::SocketWrap
- Included in:
- DebugSocket, LoopBackSocket
- Defined in:
- lib/httpclient.rb
Instance Method Summary collapse
- #<<(str) ⇒ Object
- #addr ⇒ Object
- #close ⇒ Object
- #closed? ⇒ Boolean
- #eof? ⇒ Boolean
- #flush ⇒ Object
- #gets(*args) ⇒ Object
- #initialize(socket, *args) ⇒ Object
- #read(*args) ⇒ Object
- #sync ⇒ Object
- #sync=(sync) ⇒ Object
Instance Method Details
#<<(str) ⇒ Object
1076 1077 1078 |
# File 'lib/httpclient.rb', line 1076 def <<(str) @socket << str end |
#addr ⇒ Object
1052 1053 1054 |
# File 'lib/httpclient.rb', line 1052 def addr @socket.addr end |
#close ⇒ Object
1056 1057 1058 |
# File 'lib/httpclient.rb', line 1056 def close @socket.close end |
#closed? ⇒ Boolean
1060 1061 1062 |
# File 'lib/httpclient.rb', line 1060 def closed? @socket.closed? end |
#eof? ⇒ Boolean
1064 1065 1066 |
# File 'lib/httpclient.rb', line 1064 def eof? @socket.eof? end |
#flush ⇒ Object
1080 1081 1082 |
# File 'lib/httpclient.rb', line 1080 def flush @socket.flush end |
#gets(*args) ⇒ Object
1068 1069 1070 |
# File 'lib/httpclient.rb', line 1068 def gets(*args) @socket.gets(*args) end |
#initialize(socket, *args) ⇒ Object
1047 1048 1049 1050 |
# File 'lib/httpclient.rb', line 1047 def initialize(socket, *args) super(*args) @socket = socket end |
#read(*args) ⇒ Object
1072 1073 1074 |
# File 'lib/httpclient.rb', line 1072 def read(*args) @socket.read(*args) end |
#sync ⇒ Object
1084 1085 1086 |
# File 'lib/httpclient.rb', line 1084 def sync @socket.sync end |
#sync=(sync) ⇒ Object
1088 1089 1090 |
# File 'lib/httpclient.rb', line 1088 def sync=(sync) @socket.sync = sync end |