The AWS Lambda adapter handles requests from API Gateway HTTP API (v2) and supports streaming responses via Lambda Response Streaming.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/middleapi/orpc/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Basic usage
handle(event, responseStream, options)
| Parameter | Type | Description |
|---|---|---|
event | APIGatewayProxyEventV2 | The Lambda event from API Gateway v2 |
responseStream | ResponseStream | The Lambda response stream |
options.context | Initial context type | Context passed to middleware |
options.prefix | string (optional) | Strip this prefix before routing |
{ matched: true } or { matched: false }.
The AWS Lambda adapter requires Lambda Response Streaming, which is configured by wrapping your handler with
awslambda.streamifyResponse(). This is needed to support SSE and large responses efficiently.Passing Lambda context
You can pass the LambdaContext object (execution role, request ID, etc.) into the oRPC context:
Options
Plugins to apply to the handler.
Restricts non-mutation procedures to GET requests.
