vow-body-parser
vow-body-parser parses JSON request bodies with size limits and structured BodyError for 400/413 responses. Install with vpm:
curl -fsSL https://install.vowlang.dev | shexport PATH="$HOME/.local/bin:$PATH"vpm add vow-body-parser vow-web-servervpm installQuick start
Section titled “Quick start”import vbp from vow_body_parser
fn parse_create(raw: String) -> int { return match vbp.read_and_parse(raw, 65536) { Ok(v) => len(json_stringify(v)), Err(e) => e.status, };}
fn main(caps: Caps) -> int { return parse_create("{\"name\":\"widget\"}");}Run tests
Section titled “Run tests”cd vow-libs/vow-body-parser && vow test tests/body.vow