Module: HTTPClient::SocketWrap

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

Instance Method Summary collapse

Instance Method Details

#<<(str) ⇒ Object



1076
1077
1078
# File 'lib/httpclient.rb', line 1076

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

#addrObject



1052
1053
1054
# File 'lib/httpclient.rb', line 1052

def addr
  @socket.addr
end

#closeObject



1056
1057
1058
# File 'lib/httpclient.rb', line 1056

def close
  @socket.close
end

#closed?Boolean

Returns:

  • (Boolean)


1060
1061
1062
# File 'lib/httpclient.rb', line 1060

def closed?
  @socket.closed?
end

#eof?Boolean

Returns:

  • (Boolean)


1064
1065
1066
# File 'lib/httpclient.rb', line 1064

def eof?
  @socket.eof?
end

#flushObject



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

#syncObject



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