Module: EventMachine::HTTPMethods
- Included in:
- HttpConnection
- Defined in:
- lib/em-http/http_connection.rb
Instance Method Summary collapse
- #delete(options = {}, &blk) ⇒ Object
- #get(options = {}, &blk) ⇒ Object
- #head(options = {}, &blk) ⇒ Object
- #post(options = {}, &blk) ⇒ Object
- #put(options = {}, &blk) ⇒ Object
Instance Method Details
#delete(options = {}, &blk) ⇒ Object
6 |
# File 'lib/em-http/http_connection.rb', line 6 def delete = {}, &blk; setup_request(:delete,, &blk); end |
#get(options = {}, &blk) ⇒ Object
4 |
# File 'lib/em-http/http_connection.rb', line 4 def get = {}, &blk; setup_request(:get, , &blk); end |
#head(options = {}, &blk) ⇒ Object
5 |
# File 'lib/em-http/http_connection.rb', line 5 def head = {}, &blk; setup_request(:head, , &blk); end |
#post(options = {}, &blk) ⇒ Object
8 |
# File 'lib/em-http/http_connection.rb', line 8 def post = {}, &blk; setup_request(:post, , &blk); end |
#put(options = {}, &blk) ⇒ Object
7 |
# File 'lib/em-http/http_connection.rb', line 7 def put = {}, &blk; setup_request(:put, , &blk); end |