Method: ChefAPI::Authentication#headers
- Defined in:
- lib/chef-api/authentication.rb
#headers ⇒ Hash
The fully-qualified headers for this authentication object of the form:
{
'X-Ops-Sign' => 'algorithm=sha1;version=1.1',
'X-Ops-Userid' => 'sethvargo',
'X-Ops-Timestamp' => '2014-07-07T02:17:15Z',
'X-Ops-Content-Hash' => '...',
'x-Ops-Authorization-1' => '...'
'x-Ops-Authorization-2' => '...'
'x-Ops-Authorization-3' => '...'
# ...
}
97 98 99 100 101 102 103 104 |
# File 'lib/chef-api/authentication.rb', line 97 def headers { X_OPS_SIGN => SIGNATURE, X_OPS_USERID => @user, X_OPS_TIMESTAMP => , X_OPS_CONTENT_HASH => content_hash, }.merge(signature_lines) end |