Module: HTTPClient::SocketWrap

Included in:
DebugSocket, LoopBackSocket
Defined in:
lib/httpclient.rb

Instance Method Summary collapse

Instance Method Details

#<<(str) ⇒ Object



1160
1161
1162
# File 'lib/httpclient.rb', line 1160

def <<(str)
  @socket << str
end

#addrObject



1136
1137
1138
# File 'lib/httpclient.rb', line 1136

def addr
  @socket.addr
end

#closeObject



1140
1141
1142
# File 'lib/httpclient.rb', line 1140

def close
  @socket.close
end

#closed?Boolean

Returns:

  • (Boolean)


1144
1145
1146
# File 'lib/httpclient.rb', line 1144

def closed?
  @socket.closed?
end

#eof?Boolean

Returns:

  • (Boolean)


1148
1149
1150
# File 'lib/httpclient.rb', line 1148

def eof?
  @socket.eof?
end

#flushObject



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

#syncObject



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