/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-access-requestconte-797d8b9a3718-access-requestcontext-s0426-c0000.md

Access RequestContext - hono-docs

Access RequestContext Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt access requestcontext Summa...

Access RequestContext

Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#access-requestcontext

Summary

In Hono, you can access the AWS Lambda request context by binding the LambdaEvent type and using c.env.event.requestContext. ```ts import { Hono } from 'hono' import type { LambdaEvent } from 'hono/aws-lambda' import { handle } from...

Content

In Hono, you can access the AWS Lambda request context by binding the LambdaEvent type and using c.env.event.requestContext.

import { Hono } from 'hono'
import type { LambdaEvent } from 'hono/aws-lambda'
import { handle } from 'hono/aws-lambda'

type Bindings = {
  event: LambdaEvent
}

const app = new Hono<{ Bindings: Bindings }>()

app.get('/custom-context/', (c) => {
  const lambdaContext = c.env.event.requestContext
  return c.json(lambdaContext)
})

export const handler = handle(app)
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-access-requestconte-797d8b9a3718-access-requestcontext-s0426-c0000.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.