UNPKG

apitally

Version:

Simple API monitoring & analytics for REST APIs built with Express, Fastify, NestJS, AdonisJS, Hono, H3, Elysia, and Koa.

7 lines (5 loc) 432 B
declare function measureResponseSize(response: Response, tee?: boolean): Promise<[number, Response]>; declare function getResponseBody(response: Response, tee?: boolean): Promise<[Buffer, Response]>; declare function getResponseJson(response: Response): Promise<[any, Response]>; declare function teeResponse(response: Response): [Response, Response]; export { getResponseBody, getResponseJson, measureResponseSize, teeResponse };