Skip to main content

start_proxy

Function start_proxy 

Source
pub async fn start_proxy(
    config: ProxyConfig,
    resolved_secrets: HashMap<String, (String, String)>,
    placeholder_map: PlaceholderMap,
) -> Result<ProxyHandle>
Expand description

Start the proxy server.

resolved_secrets maps host -> (header_name, header_value). placeholder_map maps placeholder tokens to real secret values for body substitution. The caller is responsible for resolving secrets from the vault.