class Fbe::Graph::HTTP
authentication and endpoints.
This class extends GraphQL::Client::HTTP to handle GitHub-specific
HTTP transport class for GraphQL client to communicate with GitHub API
def headers(_context)
-
(Hash)
- Headers for the request
Parameters:
-
_context
(Object
) -- The GraphQL request context (unused)
def headers(_context) { Authorization: "Bearer #{@token}" } end
def initialize(token, host)
-
host
(String
) -- GitHub API host (default: 'api.github.com') -
token
(String
) -- GitHub API token for authentication
def initialize(token, host) @token = token super("https://#{host}/graphql") end