lib/htty/cli/http_method_command.rb
def notify_if_cookies
    request  = session.requests.last
    response = session.last_response
    unless response.cookies.empty? || (request.cookies == response.cookies)
      puts notice('Type ' +
                  "#{strong HTTY::CLI::Commands::CookiesUse.command_line} to " +
                  'use cookies offered in the response')
    end
    self
  end
# Class methods for modules that include HTTY::CLI::HTTPMethodCommand.
Class methods for modules that include HTTY::CLI::HTTPMethodCommand.
Class methods for modules that include HTTY :: CLI :: HTTPMethodCommand .
def notify_if_cookies
    request  = session.requests.last
    response = session.last_response
    unless response.cookies.empty? || (request.cookies == response.cookies)
      puts notice('Type ' +
                  "#{strong HTTY::CLI::Commands::CookiesUse.command_line} to " +
                  'use cookies offered in the response')
    end
    self
  end
def notify_if_cookies request = session . requests . last response = session . last_response unless response . cookies . empty? || ( request . cookies == response . cookies ) puts notice ( 'Type ' + "#{strong HTTY::CLI::Commands::CookiesUse.command_line} to " + 'use cookies offered in the response' ) end self end
Class methods for modules that include HTTY::CLI::HTTPMethodCommand.
Class methods for modules that include HTTY :: CLI :: HTTPMethodCommand .