/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-modify-the-response-d1d6194283fc-modify-the-response-after-next-s0116-c0000.md
Modify the Response After Next - hono-docs
Modify the Response After Next Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt modify the respons...
Modify the Response After Next
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#modify-the-response-after-next
Summary
Additionally, middleware can be designed to modify responses if necessary: ts const stripRes = createMiddleware(async (c, next) => { await next() c.res = undefined c.res = new Response('New Response') })
Content
Additionally, middleware can be designed to modify responses if necessary:
const stripRes = createMiddleware(async (c, next) => {
await next()
c.res = undefined
c.res = new Response('New Response')
})