graphql-client
graphql-client copied to clipboard
Remove requirement for headers function in configuration
It appears that, when configuring the client, I always need to pass in a header function for GraphQL::Client::HTTP.new
, even if it ends up being something like this:
def headers(_context)
{}
end
Removing that causes a nil class error. Is it possible to make the configuration flexible such that not passing a header function at all is the equivalent of an empty hash?