/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-before-v3-10-0-depr-ca2328ab714e-before-v3-10-0-deprecated-s0427-c0000.md
Before v3.10.0 (deprecated) - hono-docs
Before v3.10.0 (deprecated) Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt before v3 10 0 deprec...
Before v3.10.0 (deprecated)
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#before-v3-10-0-deprecated
Summary
you can access the AWS Lambda request context by binding the ApiGatewayRequestContext type and using c.env. ```ts import { Hono } from 'hono' import type { ApiGatewayRequestContext } from 'hono/aws-lambda' import { handle } from 'hon...
Content
you can access the AWS Lambda request context by binding the ApiGatewayRequestContext type and using c.env.
import { Hono } from 'hono'
import type { ApiGatewayRequestContext } from 'hono/aws-lambda'
import { handle } from 'hono/aws-lambda'
type Bindings = {
requestContext: ApiGatewayRequestContext
}
const app = new Hono<{ Bindings: Bindings }>()
app.get('/custom-context/', (c) => {
const lambdaContext = c.env.requestContext
return c.json(lambdaContext)
})
export const handler = handle(app)