Adapters
The adapters of @dotpress/adapter-express, @dotpress/adapter-fastify and @dotpress/adapter-hono, and their AWS Lambda handlers. For a guide, see Adapters.
Options
Every adapter takes the same options, and rejects unknown ones:
The option types take the application as a parameter, with a default: ExpressAdapterOptions is ExpressAdapterOptions<Express>, FastifyAdapterOptions is FastifyAdapterOptions<FastifyInstance>, HonoAdapterOptions is HonoAdapterOptions<Hono>.
expressAdapter()
Express 4 and 5 are supported. @types/express types native(): without it, the application is any. See Express.
fastifyAdapter()
See Fastify.
honoAdapter()
See Hono.
createLambdaHandler()
Both entries export the same function and types. The factory creates the app at the first invocation; its failures are logged, answered with a 500, and retried at the next invocation.
See AWS Lambda.
Writing an adapter
An adapter implements HttpAdapter of @dotpress/core, with the functions of @dotpress/core/adapter: see For adapter authors. The conformance suite checks it.