lib/stacktor/core/client.rb
##
# Executes request, running any handlers beforehand
# and setting headers as necessary
#
# params:
#   req - request to process
Executes request, running any handlers beforehand
and setting headers as necessary

request to process
Executes request running any handlers beforehand and setting headers as necessary request to process
def execute_request(opts)
        if !@before_request_fn.nil?
          @before_request_fn.call(opts, self)
        end
        opts[:url] = self.url + opts[:path]
        opts[:headers] = build_headers.merge( (opts[:headers] || {}) )
        req = Request.new(opts)
        resp = req.execute
      end
def execute_request ( opts ) if ! @before_request_fn . nil? @before_request_fn . call ( opts , self ) end opts [ :url ] = self . url + opts [ :path ] opts [ :headers ] = build_headers . merge ( ( opts [ :headers ] || { } ) ) req = Request . new ( opts ) resp = req . execute end
Executes request, running any handlers beforehand
and setting headers as necessary
Executes request running any handlers beforehand and setting headers as necessary
opts
<not_specific>