Sha256: 006eab54e199e5d16e66473479ed1b42e5c0c67ed63df871334e8c8a3d968683
Contents?: true
Size: 722 Bytes
Versions: 1
Compression:
Stored size: 722 Bytes
Contents
require 'httpclient' module Duracloud # # An HTTP connection to DuraCloud. # # @note We are using HTTPClient because Net::HTTP capitalizes # request header names which is incompatible with DuraCloud's # custom case-sensitive content property headers (x-dura-meta-*). # class Connection < HTTPClient # class << self # attr_accessor :base_path # end # self.base_path = '/' def initialize(client, base_path = '/') base_url = client.base_url + base_path super(base_url: base_url, force_basic_auth: true) set_auth(client.base_url, client.user, client.password) end end # class DurastoreConnection < Connection # self.base_path = '/durastore/' # end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
duracloud-client-0.0.1 | lib/duracloud/connection.rb |