Module: EventMachine::HTTPMethods

Included in:
HttpConnection
Defined in:
lib/em-http/http_connection.rb

Instance Method Summary collapse

Instance Method Details

#delete(options = {}, &blk) ⇒ Object



8
# File 'lib/em-http/http_connection.rb', line 8

def delete   options = {}, &blk;  setup_request(:delete,  options, &blk); end

#get(options = {}, &blk) ⇒ Object



6
# File 'lib/em-http/http_connection.rb', line 6

def get      options = {}, &blk;  setup_request(:get,     options, &blk); end

#head(options = {}, &blk) ⇒ Object



7
# File 'lib/em-http/http_connection.rb', line 7

def head     options = {}, &blk;  setup_request(:head,    options, &blk); end

#options(options = {}, &blk) ⇒ Object



12
# File 'lib/em-http/http_connection.rb', line 12

def options  options = {}, &blk;  setup_request(:options, options, &blk); end

#patch(options = {}, &blk) ⇒ Object



11
# File 'lib/em-http/http_connection.rb', line 11

def patch    options = {}, &blk;  setup_request(:patch,   options, &blk); end

#post(options = {}, &blk) ⇒ Object



10
# File 'lib/em-http/http_connection.rb', line 10

def post     options = {}, &blk;  setup_request(:post,    options, &blk); end

#put(options = {}, &blk) ⇒ Object



9
# File 'lib/em-http/http_connection.rb', line 9

def put      options = {}, &blk;  setup_request(:put,     options, &blk); end