Class: IncomingEventMiddleware
Class: IncomingEventMiddleware
Middleware for handling incoming events and transforming them into Stone.js events.
This class processes incoming events, extracting relevant data and forwards them to the next middleware in the pipeline.
Constructors
Constructor
new IncomingEventMiddleware(): IncomingEventMiddleware;
Returns
IncomingEventMiddleware
Methods
handle()
handle(context, next): Promise<AwsLambdaAdapterResponseBuilder>;
Handles the incoming event, processes it, and invokes the next middleware in the pipeline.
Parameters
context
The adapter context containing the raw event, execution context, and other data.
next
NextMiddleware
<AwsLambdaAdapterContext
, AwsLambdaAdapterResponseBuilder
>
The next middleware to be invoked in the pipeline.
Returns
Promise
<AwsLambdaAdapterResponseBuilder
>
A promise that resolves to the processed Response Builder.
Throws
If required components are missing in the context.