/Knowledge/sources/honojs__hono/llms-full/proxy-helper-proxy-connection-header-processing--806a1e3bed32.md
Proxy Helper: proxy() > Connection Header Processing - hono-docs
Proxy Helper: proxy() Connection Header Processing Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt con...
Proxy Helper: proxy() > Connection Header Processing
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#connection-header-processing
Summary
By default, proxy() ignores the Connection header to prevent Hop-by-Hop Header Injection attacks. You can enable strict RFC 9110 compliance with the strictConnectionProcessing option: ```ts // Default behavior (recommended for untr...
Content
By default, proxy() ignores the Connection header to prevent Hop-by-Hop Header Injection attacks. You can enable strict RFC 9110 compliance with the strictConnectionProcessing option:
// Default behavior (recommended for untrusted clients)
app.get('/proxy/:path', (c) => {
return proxy(`http://${originServer}/${c.req.param('path')}`, c.req)
})
// Strict RFC 9110 compliance (use only in trusted environments)
app.get('/internal-proxy/:path', (c) => {
return proxy(`http://${internalServer}/${c.req.param('path')}`, {
...c.req,
strictConnectionProcessing: true,
})
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#connection-header-processing",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Proxy Helper > `proxy()` > Connection Header Processing",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 682,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Proxy Helper: proxy() > Connection Header Processing",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}