UNPKG

ipfs-http-gateway

Version:

JavaScript implementation of the IPFS specification

22 lines 684 B
export class HttpGateway { /** * @param {IPFS} ipfs */ constructor(ipfs: IPFS); _ipfs: import("ipfs-core-types").IPFS<any>; _log: import("@libp2p/logger").Logger; /** @type {Server[]} */ _gatewayServers: Server[]; start(): Promise<void>; /** * @param {string} host * @param {string} port * @param {IPFS} ipfs */ _createGatewayServer(host: string, port: string, ipfs: IPFS): Promise<Hapi.Server<Hapi.ServerApplicationState>>; stop(): Promise<void>; } export type IPFS = import('ipfs-core-types').IPFS; export type Server = import('./types').Server; import Hapi from "@hapi/hapi"; //# sourceMappingURL=index.d.ts.map