rl_lang/docs/entries/stdlib/http/
http_request_body.rs1use crate::docs::entry::FnEntry;
2
3pub static HTTP_REQUEST_BODY: FnEntry = FnEntry {
4 signature: "http_request_body(req)",
5 description: "reads the request body as a string; the body can only be read once",
6 example: r#"
7get std::http::http_request_body
8
9dec string body = result_unwrap(http_request_body(req))"#,
10 expected_output: None,
11 returns: "Result[string]",
12 errors: Some("Err(string) on a read error"),
13 see_also: &["http_request_header"],
14 since: Some("v0.1.5"),
15};