UNPKG

moleculer-api

Version:

A dynamic API Gateway for MoleculerJS which updates REST endpoints and aggregated GraphQL schema, access control policy for each action calls from metadata of remote services schema without restart or deployment.

23 lines (22 loc) 638 B
/// <reference types="node" /> import { HTTPRouteRequest, HTTPRouteResponse } from "../../../../../server"; export declare type Upload = { filename: string; encoding: string; mimetype: string; createReadStream: () => NodeJS.ReadableStream; }; export declare class MultipartFormDataHandler { protected readonly props: { maxFiles: number; maxFileSize: number; }; constructor(props: { maxFiles: number; maxFileSize: number; }); collect(req: HTTPRouteRequest, res: HTTPRouteResponse): Promise<{ [fieldName: string]: Upload; } | null>; private wasteStream; }