Module: ZMachine::HTTPMethods

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

Instance Method Summary collapse

Instance Method Details

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



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

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

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



4
# File 'lib/z-http/http_connection.rb', line 4

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

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



5
# File 'lib/z-http/http_connection.rb', line 5

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

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



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

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

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



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

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

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



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

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

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



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

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