Class: Celluloid::Http::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/celluloid-http/builder.rb

Class Method Summary collapse

Class Method Details

.get(url) ⇒ Object



5
6
7
# File 'lib/celluloid-http/builder.rb', line 5

def get(url)
  Celluloid::Http::Request.new url
end

.post(url, params) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/celluloid-http/builder.rb', line 9

def post(url, params)
  options = {
      form_data: params,
      method: :post
  }
  Celluloid::Http::Request.new url, options
end