Class: HTTPClient::Site

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

new(uri = nil)

Creates a new Site based on the given URI.

### Public Instance methods

==(rhs)

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

addr()

Returns address String.

eql?(rhs)

Same as ==.

match(uri)

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

[Validate]