/Knowledge/sources/honojs__hono/llms-full/honorequest-valid--876cc2939592.md
HonoRequest: valid() - hono-docs
HonoRequest: valid() Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt valid Summary Get the validated d...
HonoRequest: valid()
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#valid
Summary
Get the validated data. ts app.post('/posts', async (c) => { const { title, body } = c.req.valid('form') // ... }) Available targets are below. - form - json - query - header - cookie - param See the [Validation sectio...
Content
Get the validated data.
app.post('/posts', async (c) => {
const { title, body } = c.req.valid('form')
// ...
})
Available targets are below.
formjsonqueryheadercookieparam
See the Validation section for usage examples.
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#valid",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / HonoRequest > valid()",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 583,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "HonoRequest: valid()",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}