Skip to main content

Module spec

Module spec 

Source
Expand description

Parser for the .http specs DSL.

The grammar is line-oriented. Setup directives precede the first endpoint (whose first line is METHOD /path). Block bodies (BODY form { ... }, BODY json { ... }) span multiple lines and are closed by a } on its own line.

Whole-line comments start with #. Trailing inline comments are not supported (to avoid ambiguity with regex/exec content).

The Exec sub-language is parsed by crate::parse::exec (chumsky); this module only handles the line-oriented outer grammar.

Structs§

ParseResult

Functions§

parse
parse_type_expr