apollo-angular-link-http
Version:
An Apollo Link to allow sending a single http request per operation.
16 lines (15 loc) • 657 B
TypeScript
import { HttpClient } from '@angular/common/http';
import { ApolloLink, Observable as LinkObservable, Operation, FetchResult } from 'apollo-link';
import { Options } from 'apollo-angular-link-http-common';
export declare class HttpLinkHandler extends ApolloLink {
private httpClient;
private options;
requester: (operation: Operation) => LinkObservable<FetchResult> | null;
constructor(httpClient: HttpClient, options: Options);
request(op: Operation): LinkObservable<FetchResult> | null;
}
export declare class HttpLink {
private httpClient;
constructor(httpClient: HttpClient);
create(options: Options): HttpLinkHandler;
}