lib/htty/cli/http_method_command.rb
# 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_follow
    location_header = session.last_response.headers.detect do |header|
      header.first == 'Location'
    end
    if location_header
      puts notice('Type ' +
                  "#{strong HTTY::CLI::Commands::Follow.command_line} to " +
                  "follow the 'Location' header received in the response")
    end
    self
  end
def notify_if_follow location_header = session . last_response . headers . detect do | header | header . first == 'Location' end if location_header puts notice ( 'Type ' + "#{strong HTTY::CLI::Commands::Follow.command_line} to " + "follow the 'Location' header received in the response" ) end self end
Class methods for modules that include HTTY::CLI::HTTPMethodCommand.
Class methods for modules that include HTTY :: CLI :: HTTPMethodCommand .