Class: Lhj::Command::Http

Inherits:
Lhj::Command show all
Defined in:
lib/lhj/command/http.rb

Overview

http client

Instance Method Summary collapse

Methods inherited from Lhj::Command

#auto_spin, #begin_title, #initialize, #run, #stop

Constructor Details

This class inherits a constructor from Lhj::Command

Instance Method Details

#handleObject



8
9
10
11
# File 'lib/lhj/command/http.rb', line 8

def handle
  response = Excon.get('http://www.baidu.com')
  puts response.body
end