Class: RestClient::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/restclient_ext/resource.rb

Instance Method Summary collapse

Instance Method Details

#get_options(additional_headers = {}, &block) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/restclient_ext/resource.rb', line 3

def get_options(additional_headers={}, &block)
  headers = (options[:headers] || {}).merge(additional_headers)
  Request.execute_options(options.merge(
                      :method => :options,
                      :url => url,
                      :headers => headers), &(block || @block))
end