/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')
})
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-modify-the-response-d1d6194283fc-modify-the-response-after-next-s0116-c0000.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.