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
1160 1161 1162 |
# File 'lib/httpclient.rb', line 1160 def <<(str) @socket << str end |
#addr ⇒ Object
1136 1137 1138 |
# File 'lib/httpclient.rb', line 1136 def addr @socket.addr end |
#close ⇒ Object
1140 1141 1142 |
# File 'lib/httpclient.rb', line 1140 def close @socket.close end |
#closed? ⇒ Boolean
1144 1145 1146 |
# File 'lib/httpclient.rb', line 1144 def closed? @socket.closed? end |
#eof? ⇒ Boolean
1148 1149 1150 |
# File 'lib/httpclient.rb', line 1148 def eof? @socket.eof? end |
#flush ⇒ Object
1164 1165 1166 |
# File 'lib/httpclient.rb', line 1164 def flush @socket.flush end |
#gets(*args) ⇒ Object
1152 1153 1154 |
# File 'lib/httpclient.rb', line 1152 def gets(*args) @socket.gets(*args) end |
#initialize(socket, *args) ⇒ Object
1131 1132 1133 1134 |
# File 'lib/httpclient.rb', line 1131 def initialize(socket, *args) super(*args) @socket = socket end |
#read(*args) ⇒ Object
1156 1157 1158 |
# File 'lib/httpclient.rb', line 1156 def read(*args) @socket.read(*args) end |
#sync ⇒ Object
1168 1169 1170 |
# File 'lib/httpclient.rb', line 1168 def sync @socket.sync end |
#sync=(sync) ⇒ Object
1172 1173 1174 |
# File 'lib/httpclient.rb', line 1172 def sync=(sync) @socket.sync = sync end |