/Knowledge/sources/honojs__hono/llms-full/aws-lambda-access-requestcontext--a0182e63e377.md

AWS Lambda: Access RequestContext - hono-docs

AWS Lambda: Access RequestContext Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt access requestcontex...

AWS Lambda: Access RequestContext

Source evidence: /Sources/honojs__hono/provenance.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)

Metadata

{
  "chunk_index": 0,
  "citation": "https://hono.dev/llms-full.txt#access-requestcontext",
  "coverage_role": "overview",
  "qualified_title": "Hono / llms-full / AWS Lambda > Access RequestContext",
  "retrieved_at": "2026-07-02T05:51:01Z",
  "section_index": 426,
  "source_id": "/honojs/hono",
  "source_type": "llms_full",
  "target_label": "llms-full",
  "title": "AWS Lambda: Access RequestContext",
  "upstream_url": "https://hono.dev/llms-full.txt",
  "version": "2026"
}
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Knowledge/sources/honojs__hono/llms-full/aws-lambda-access-requestcontext--a0182e63e377.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.