Skip to main content

parse_backend

Function parse_backend 

Source
pub fn parse_backend(backend: &str) -> Result<(String, u16), ProxyError>
Expand description

Parse a backend into (host, port).

Accepts either a URL with an explicit or scheme-default port (http://127.0.0.1:3000, https://host) or a bare host:port (127.0.0.1:3000). The passthrough connects to this TCP endpoint directly; any URL path is irrelevant to a byte-level proxy and is ignored.