Represents a Site: protocol scheme, host String and port Number.
Host String.
Host String.
Port number.
Protocol scheme.
Returns true is scheme, host and port are '=='
# File lib/httpclient/session.rb, line 57 def ==(rhs) (@scheme == rhs.scheme) and (@host == rhs.host) and (@port == rhs.port) end
Returns address String.
# File lib/httpclient/session.rb, line 52 def addr "#{@scheme}://#{@host}:#{@port.to_s}" end
Same as ==.
# File lib/httpclient/session.rb, line 62 def eql?(rhs) self == rhs end
Returns true if scheme, host and port of the given URI matches with this.
# File lib/httpclient/session.rb, line 75 def match(uri) (@scheme == uri.scheme) and (@host == uri.host) and (@port == uri.port.to_i) end