Method: Backup::Notifier::HttpPost#headers

Defined in:
lib/backup/notifier/http_post.rb

#headersObject

Hash of additional HTTP headers to send.

This notifier sets the following headers: { ‘User-Agent’ => “Backup/#{ Backup::VERSION }”,

'Content-Type' => 'x-www-form-urlencoded' }

‘Content-Type’ may not be changed. ‘User-Agent’ may be overridden or omitted by setting it to nil. e.g. { ‘Authorization’ => ‘my_auth_info’, ‘User-Agent’ => nil }



30
31
32
# File 'lib/backup/notifier/http_post.rb', line 30

def headers
  @headers
end