@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.
39 lines (37 loc) • 997 B
text/typescript
/**
* The record that represents the headers that doesn't have multiple values in the value
*
* @example
* ```typescript
* { 'Accept-Encoding': 'gzip, deflate, br' }
* ```
*
* @breadcrumb Types
* @public
*/
type SingleValueHeaders = Record<string, string | undefined>;
/**
* The record that represents the headers that have multiple values in the value
*
* @example
* ```typescript
* { 'Accept-Encoding': ['gzip', 'deflate', 'br'] }
* ```
*
* @breadcrumb Types
* @public
*/
type MultiValueHeaders = Record<string, string[] | undefined>;
/**
* The record that represents the headers that can both single or multiple values in the value
*
* @example
* ```typescript
* { 'Accept-Encoding': ['gzip', 'deflate', 'br'], 'Host': 'xyz.execute-api.us-east-1.amazonaws.com' }
* ```
*
* @breadcrumb Types
* @public
*/
type BothValueHeaders = Record<string, string | string[] | undefined>;
export type { BothValueHeaders as B, MultiValueHeaders as M, SingleValueHeaders as S };