/Knowledge/sources/honojs__hono/llms-full/server-timing-middleware-usage-conditionally-enabled--e1017221dc8b.md
Server-Timing Middleware: Usage > Conditionally enabled - hono-docs
Server Timing Middleware: Usage Conditionally enabled Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt...
Server-Timing Middleware: Usage > Conditionally enabled
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#conditionally-enabled
Summary
ts const app = new Hono() app.use( '*', timing({ // c: Context of the request enabled: (c) => c.req.method === 'POST', }) )
Content
const app = new Hono()
app.use(
'*',
timing({
// c: Context of the request
enabled: (c) => c.req.method === 'POST',
})
)
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#conditionally-enabled",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Server-Timing Middleware > Usage > Conditionally enabled",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 310,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Server-Timing Middleware: Usage > Conditionally enabled",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}