vld-http-common
Deprecated.
vld-http-commonis not developed any more. Since vld 0.8 it is part ofvld-web:vld_web::common.= "0.8"Migration guide: https://s00d.github.io/vld/guides/migration#from-07-to-08. This version (0.7.1) is 0.7.0 unchanged, with this notice.
Shared HTTP helpers of the vld web adapters (vld-axum, vld-actix, vld-ntex, vld-poem, vld-rama, vld-rocket, vld-salvo, vld-tower, vld-warp, vld-tonic): value coercion, query / form / header / cookie parsing, content-type checks and the JSON error body. Framework-agnostic — no HTTP framework or http dependency.
Applications normally use it through an adapter; depend on it directly to write an adapter for another framework.
Install
[]
= "0.5"
| Feature | Description |
|---|---|
conformance |
Test support: the shared adapter conformance suite |
Example
use ;
schema!
let err = extract.unwrap_err;
assert_eq!;
// {"error": "Validation failed", "issues": [{"path": ".name", "message": "...", "code": "too_small"}]}
println!;
Documentation
- Guide: https://s00d.github.io/vld/integrations/shared/http-common
- Shared adapter rules: https://s00d.github.io/vld/integrations/web/overview
- API: https://docs.rs/vld-http-common
MSRV: 1.85 (MSRV.md).
License
MIT