Sha256: e95f3debc91d9cd1ec3fd710b9c05640d92d58e1609ca1957b964271ec3ecc37

Contents?: true

Size: 453 Bytes

Versions: 16

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true
require 'graphql/client/http'

module ShopifyAPI
  module GraphQL
    class HTTPClient < ::GraphQL::Client::HTTP
      def initialize(api_version)
        @api_version = api_version
      end

      def headers(_context)
        ShopifyAPI::Base.headers
      end

      def uri
        ShopifyAPI::Base.site.dup.tap do |uri|
          uri.path = @api_version.construct_graphql_path
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
shopify_api-9.5.2 lib/shopify_api/graphql/http_client.rb
ruby_shopify_api-1.2.0 lib/ruby_shopify_api/graphql/http_client.rb
ruby_shopify_api-1.1.0 lib/shopify_api/graphql/http_client.rb
ruby_shopify_api-1.0.0 lib/shopify_api/graphql/http_client.rb
shopify_api-9.5.1 lib/shopify_api/graphql/http_client.rb
shopify_api-9.5 lib/shopify_api/graphql/http_client.rb
shopify_api-9.4.1 lib/shopify_api/graphql/http_client.rb
shopify_api-9.4.0 lib/shopify_api/graphql/http_client.rb
shopify_api-9.3.0 lib/shopify_api/graphql/http_client.rb
shopify_api-9.2.0 lib/shopify_api/graphql/http_client.rb
shopify_api-9.1.0 lib/shopify_api/graphql/http_client.rb
shopify_api-9.0.4 lib/shopify_api/graphql/http_client.rb
shopify_api-9.0.3 lib/shopify_api/graphql/http_client.rb
shopify_api-9.0.2 lib/shopify_api/graphql/http_client.rb
shopify_api-9.0.1 lib/shopify_api/graphql/http_client.rb
shopify_api-9.0.0 lib/shopify_api/graphql/http_client.rb