import { ApolloLink } from "@apollo/client/link";
import { ClientAwarenessLink } from "@apollo/client/link/client-awareness";
import { BaseHttpLink } from "./BaseHttpLink.js";
export class HttpLink extends ApolloLink {
    constructor(options = {}) {
        const { left, right, request } = ApolloLink.concat(new ClientAwarenessLink(options), new BaseHttpLink(options));
        super(request);
        Object.assign(this, { left, right });
    }
}
/**
 * @deprecated
 * Use `HttpLink` from `@apollo/client/link/http` instead.
 */
export const createHttpLink = (linkOptions = {}) => new HttpLink(linkOptions);
//# sourceMappingURL=HttpLink.js.map
