/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-usage-492647be7ffd-usage-s0349-c0000.md
Usage (1) - hono-docs
Usage (1) Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt usage Summary Here's how to use the Tim...
Usage (1)
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#usage
Summary
Here's how to use the Timeout Middleware with both default and custom settings: Default Settings: ```ts const app = new Hono() // Applying a 5-second timeout app.use('/api', timeout(5000)) // Handling a route app.get('/api/data', async (...
Content
Here's how to use the Timeout Middleware with both default and custom settings:
Default Settings:
const app = new Hono()
// Applying a 5-second timeout
app.use('/api', timeout(5000))
// Handling a route
app.get('/api/data', async (c) => {
// Your route handler logic
return c.json({ data: 'Your data here' })
})Custom settings: