/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-valid-839f912cc47d-valid-s0583-c0000.md
valid() - hono-docs
valid() Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt valid Summary Get the validated data. Ava...
valid()
Source evidence: /Sources/raw/honojshono/honojshono.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.