class GraphqlUtil::Http

Attributes

token[RW]

Public Class Methods

new(endpoint:, headers: {}) click to toggle source

Returns the GraphQL::Client::HTTP instance injecting the PulsarAuthUtil authentication Token

@param [String] endpoint GraphQL API Endpoint @param [Hash] headers HTTP Request headers

Calls superclass method
# File lib/graphql_util/http.rb, line 13
def initialize(endpoint:, headers: {})
  @headers = headers
  super(endpoint) do
    def headers(context)
      @headers
    end
  end
end

Public Instance Methods

headers(context) click to toggle source
# File lib/graphql_util/http.rb, line 16
def headers(context)
  @headers
end