Class: UnderOs::HTTP

Inherits:
Object
  • Object
show all
Defined in:
lib/under_os/http.rb

Defined Under Namespace

Classes: Request, Response

Class Method Summary collapse

Class Method Details

.get(url, options = {}, &block) ⇒ Object



2
3
4
# File 'lib/under_os/http.rb', line 2

def self.get(url, options={}, &block)
  Request.new(url, options.merge(method: :get), &block).send
end