UNPKG

@comunica/types

Version:

Typings module for Comunica

20 lines (19 loc) 527 B
/** * A proxy handler can override an HTTP request. */ export interface IProxyHandler { /** * Get a new proxied request for a given request. * If the given request is not applicable, null can be returned. * @param {IRequest} request A request. * @return {Promise<IRequest>} A new request, or null. */ getProxy: (request: IRequest) => Promise<IRequest>; } /** * A request that conforms to the fetch interface. */ export interface IRequest { input: RequestInfo; init?: RequestInit; }