fn forms_body(args: &mut RequestField, body: &[u8]) -> Result<(), String> {
    // TODO: body is traversed twice here, this is inefficient
    if body.contains(&b'=') && body.iter().all(|x| *x > 0x20 && *x < 0x7f) {
        parse_urlencoded_params_bytes(args, body);
        Ok(())
    } else {
        Err("Body is not forms encoded".to_string())
    }
}
/// parses bodies that are url encoded forms, like query params
parses bodies that are url encoded forms, like query params
parses bodies that are url encoded forms like query params
fn forms_body(args: &mut RequestField, body: &[u8]) -> Result<(), String> {
    // TODO: body is traversed twice here, this is inefficient
    if body.contains(&b'=') && body.iter().all(|x| *x > 0x20 && *x < 0x7f) {
        parse_urlencoded_params_bytes(args, body);
        Ok(())
    } else {
        Err("Body is not forms encoded".to_string())
    }
}
fn forms_body ( args : & mut RequestField , body : & [ u8 ] ) -> Result < ( ) , String > { // TODO: body is traversed twice here, this is inefficient if body . contains ( & b'=' ) && body . iter ( ) . all ( | x | * x > 0x20 && * x < 0x7f ) { parse_urlencoded_params_bytes ( args , body ) ; Ok ( ( ) ) } else { Err ( " " . to_string ( ) ) } }
parses bodies that are url encoded forms, like query params
parses bodies that are url encoded forms like query params
args
&mut RequestField
body
&[u8]