Rede Parser
Library crate to receive the content of Rede's files and generate the requests or environments to use in the command-line binary. It can be used on its own to implement Rede's format in other projects or implementations.
Usage
The library offers the function rede_parser::parse_request to convert a given string into a valid
rede_parser::Request.
let toml = r#"
[http]
method = "POST"
url = "http://localhost:8080/note"
[headers]
Content-Type = "application/json"
[body]
raw = """
{
"title": "Implement rede_parser" ,
"description": "Implement it following the example
}
"""
"#;
let request = parse_request?;
assert_eq!;
assert_eq!;
assert_eq!;
if let Raw = &request.body