/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-req-bc4eb6d95938-req-s0551-c0000.md
req - hono-docs
req Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt req Summary req is an instance of HonoRequest...
req
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#req
Summary
req is an instance of HonoRequest. For more details, see HonoRequest. ```ts twoslash import { Hono } from 'hono' const app = new Hono() // ---cut--- app.get('/hello', (c) => { const userAgent = c.req.header('User-A...
Content
req is an instance of HonoRequest. For more details, see HonoRequest.
import { Hono } from 'hono'
const app = new Hono()
// ---cut---
app.get('/hello', (c) => {
const userAgent = c.req.header('User-Agent')
// ...
// ---cut-start---
return c.text(`Hello, ${userAgent}`)
// ---cut-end---
})