@h4ad/serverless-adapter
Version:
Run REST APIs and other web applications using your existing Node.js application framework (NestJS, Express, Koa, Hapi, Fastify and many others), on top of AWS, Azure, Digital Ocean and many other clouds.
33 lines (31 loc) • 1.16 kB
text/typescript
/**
* Default encodings that are treated as binary, they are compared with the `Content-Encoding` header.
*
* @breadcrumb Core / Constants
* @defaultValue ['gzip', 'deflate', 'br']
* @public
*/
declare const DEFAULT_BINARY_ENCODINGS: string[];
/**
* Default content types that are treated as binary, they are compared with the `Content-Type` header.
*
* @breadcrumb Core / Constants
* @defaultValue ['image/png', 'image/jpeg', 'image/jpg', 'image/avif', 'image/bmp', 'image/x-png', 'image/gif', 'image/webp', 'video/mp4', 'application/pdf']
* @public
*/
declare const DEFAULT_BINARY_CONTENT_TYPES: string[];
/**
* Type alias for empty response and can be used on some adapters when the adapter does not need to return a response.
*
* @breadcrumb Core / Constants
* @public
*/
type IEmptyResponse = {};
/**
* Constant for empty response and can be used on some adapters when the adapter does not need to return a response.
*
* @breadcrumb Core / Constants
* @public
*/
declare const EmptyResponse: IEmptyResponse;
export { DEFAULT_BINARY_ENCODINGS as D, EmptyResponse as E, type IEmptyResponse as I, DEFAULT_BINARY_CONTENT_TYPES as a };