fn extract_domain(
    uri: &mut Uri,
    is_http_connect: bool
) -> Result<(Scheme, Authority)>