lib/htty/request.rb
# Establishes a new #uri corresponding to the specified _address_. If the host
# of the _address_ is different from the host of #uri, then #cookies are
# cleared.
Establishes a new #uri corresponding to the specified _address_. If the host
of the _address_ is different from the host of #uri, then #cookies are
cleared.
Establishes a new #uri corresponding to the specified _address_ . If the host of the _address_ is different from the host of #uri then #cookies are cleared .
def address(address)
    uri = self.class.parse_uri(address)
    if response
      dup = dup_without_response
      return self.class.send(:set_up_cookies_and_authentication, dup) do
        dup.uri = uri
      end
    end
    self.class.send(:set_up_cookies_and_authentication, self) do
      @uri = uri
    end
  end
def address ( address ) uri = self . class . parse_uri ( address ) if response dup = dup_without_response return self . class . send ( :set_up_cookies_and_authentication , dup ) do dup . uri = uri end end self . class . send ( :set_up_cookies_and_authentication , self ) do @uri = uri end end
Establishes a new #uri corresponding to the specified _address_.
Establishes a new #uri corresponding to the specified _address_ .
address