pub fn is_valid_pod_query(query: &str) -> boolExpand description
Returns true when query is acceptable as the query string of a pod
request.
query is the text after the ?, which a gate forwards as received. It
may be empty and may hold only the pod-path characters
A–Z a–z 0–9 - . _ ~ / and = & % +. No decoding is done: % is allowed
here because the query is passed through verbatim and only ever compared
byte for byte.
§Examples
use stratum_node_core::is_valid_pod_query;
assert!(is_valid_pod_query("a=1&b=x%20y+z"));
assert!(is_valid_pod_query(""));
assert!(!is_valid_pod_query("a=1;b=2"));
assert!(!is_valid_pod_query("a=#"));