"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createHttpLink = exports.HttpLink = void 0;
const link_1 = require("@apollo/client/link");
const client_awareness_1 = require("@apollo/client/link/client-awareness");
const BaseHttpLink_js_1 = require("./BaseHttpLink.cjs");
class HttpLink extends link_1.ApolloLink {
    constructor(options = {}) {
        const { left, right, request } = link_1.ApolloLink.concat(new client_awareness_1.ClientAwarenessLink(options), new BaseHttpLink_js_1.BaseHttpLink(options));
        super(request);
        Object.assign(this, { left, right });
    }
}
exports.HttpLink = HttpLink;
/**
 * @deprecated
 * Use `HttpLink` from `@apollo/client/link/http` instead.
 */
const createHttpLink = (linkOptions = {}) => new HttpLink(linkOptions);
exports.createHttpLink = createHttpLink;
//# sourceMappingURL=HttpLink.cjs.map
