Skip to content

Feature request: Add function to convert Lambda event to web Request object #4342

@svozza

Description

@svozza

Use case

The event handler will eventually support multiple event type (ALB etc). types, as such we need a common format to represent these requests. We should use the standard Fetch Request object for this purpose.

Solution/User Experience

We will have a utility function to convert an APIGatewayProxyEvent to a Request. We should also add a type guard to test whether the event to be converted is actually is of type APIGatewayProxyEvent.

Alternative solutions

Acknowledgment

Future readers

Please react with 👍 and your use case to help us understand customer demand.

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippedevent-handlerThis item relates to the Event Handler Utilityfeature-requestThis item refers to a feature request for an existing or new utility

Type

No type

Projects

Status

Shipped

Relationships

None yet

Development

No branches or pull requests

Issue actions