Method: Hyperclient::EntryPoint#default_headers

Defined in:
lib/hyperclient/entry_point.rb

#default_headersObject (private)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns the default headers to initialize the Faraday connection. The default headers et the Content-Type and Accept to application/json.

Returns:

  • a Hash.



150
151
152
# File 'lib/hyperclient/entry_point.rb', line 150

def default_headers
  { 'Content-Type' => 'application/hal+json', 'Accept' => 'application/hal+json,application/json' }
end