Skip to main content

read_body

Function read_body 

Source
pub fn read_body(raw: &str) -> Result<String>
Expand description

Resolve a --body value, which is either JSON or @<path>.

The body is parsed before it is sent, not passed through: a typo in a JSON literal is otherwise reported by the cassette as a 400 whose message is about the cassette’s schema rather than about the quoting mistake that caused it.