Method: GraphQL::Client::HTTP#headers

Defined in:
lib/graphql/client/http.rb

#headers(_context) ⇒ Object

Public: Extension point for subclasses to set custom request headers.

Returns Hash of String header names and values.


44
45
46
# File 'lib/graphql/client/http.rb', line 44

def headers(_context)
  {}
end