client/lib/deltacloud/client/connection.rb
# Default Deltacloud HTTP headers. Common for *all* requests
# to Deltacloud API
#
Default Deltacloud HTTP headers. Common for *all* requests
to Deltacloud API
Default Deltacloud HTTP headers . Common for * all * requests to Deltacloud API
def deltacloud_request_headers
      headers = {}
      headers['Accept'] = 'application/xml'
      headers['X-Deltacloud-Driver'] = @request_driver.to_s \
        if @request_driver
      headers['X-Deltacloud-Provider'] = @request_provider.to_s \
        if @request_provider
      headers
    end
def deltacloud_request_headers headers = { } headers [ 'Accept' ] = 'application/xml' headers [ 'X-Deltacloud-Driver' ] = @request_driver . to_s if @request_driver headers [ 'X-Deltacloud-Provider' ] = @request_provider . to_s if @request_provider headers end
Default Deltacloud HTTP headers.
Default Deltacloud HTTP headers .