Skip to main content

parse_add_entry

Function parse_add_entry 

Source
fn parse_add_entry(entry: &str) -> Result<(String, String), String>
Expand description

Splits an add entry of the form "Name: value" into (name, value).

Mirrors APISIX’s ^([^:\s]+)\s*:\s*([^:]+)$: the name has no colon or whitespace, and the value part must be non-empty and colon-free.