lib/powertrack/streaming/stream.rb
def common_req_headers
      { 'accept' => 'application/json',
        'content-type' => 'application/json; charset=utf-8',
        :redirects => 3 }.merge(auth_header)
    end
# Returns the HTTP headers common to each valid PowerTrack request.
# Each call returns a new hash which can be safely modified by the caller.
Returns the HTTP headers common to each valid PowerTrack request.
Each call returns a new hash which can be safely modified by the caller.
Returns the HTTP headers common to each valid PowerTrack request . Each call returns a new hash which can be safely modified by the caller .
def common_req_headers
      { 'accept' => 'application/json',
        'content-type' => 'application/json; charset=utf-8',
        :redirects => 3 }.merge(auth_header)
    end
def common_req_headers { 'accept' => 'application/json' , 'content-type' => 'application/json; charset=utf-8' , :redirects => 3 } . merge ( auth_header ) end
Returns the HTTP headers common to each valid PowerTrack request.
Returns the HTTP headers common to each valid PowerTrack request .