Skip to main content

parse_engine_spec

Function parse_engine_spec 

Source
pub fn parse_engine_spec(
    raw: &str,
    headers: &[(String, String)],
) -> Result<EngineSpec>
Expand description

Classify a raw --server value (the reference’s parseEngineSpec): an http(s):// value is an HTTP endpoint (verbatim; headers ride along); anything else is split on whitespace and spawned. Errors: an empty value, or headers for a command (they have nowhere to go).