/Knowledge/sources/honojs__hono/llms-full/honorequest-clonerawrequest--1546694ace8e.md
HonoRequest: cloneRawRequest() - hono-docs
HonoRequest: cloneRawRequest() Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt clonerawrequest Summary...
HonoRequest: cloneRawRequest()
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#clonerawrequest
Summary
Clones the raw Request object from a HonoRequest. Works even after the request body has been consumed by validators or HonoRequest methods. ```ts twoslash import { Hono } from 'hono' const app = new Hono() import { cloneRawRequest } from...
Content
Clones the raw Request object from a HonoRequest. Works even after the request body has been consumed by validators or HonoRequest methods.
import { Hono } from 'hono'
const app = new Hono()
import { cloneRawRequest } from 'hono/request'
import { validator } from 'hono/validator'
app.post(
'/forward',
validator('json', (data) => data),
async (c) => {
// Clone after validation
const clonedReq = await cloneRawRequest(c.req)
// Does not throw the error
await clonedReq.json()
// ...
}
)
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#clonerawrequest",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / HonoRequest > cloneRawRequest()",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 590,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "HonoRequest: cloneRawRequest()",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}