Class HTTPClient::Site
In: lib/httpclient/session.rb
Parent: Object

Represents a Site: protocol scheme, host String and port Number.

Methods

==   addr   eql?   match   new  

Attributes

host  [R]  Host String.
port  [R]  Port number.
scheme  [RW]  Protocol scheme.

Public Class methods

Creates a new Site based on the given URI.

Public Instance methods

Returns true is scheme, host and port are ’==’

Returns address String.

Same as ==.

Returns true if scheme, host and port of the given URI matches with this.

[Validate]