Skip to main content

parse_admin_url

Function parse_admin_url 

Source
pub fn parse_admin_url(url: &str) -> Result<AdminEndpoint, String>
Expand description

Parse an --admin URL into dial parts.

Accepts http://host[:port][/path] and bare host[:port][/path]. TLS admin URLs are rejected: the local admin contract is HTTP/1.1-only.