MCPcopy Create free account
hub / github.com/Recordscript/recordscript / make_request

Method make_request

libs/hbb_common/src/proxy.rs:490–503  ·  view source on GitHub ↗
(&self, host: &str, port: u16)

Source from the content-addressed store, hash-verified

488 }
489
490 fn make_request(&self, host: &str, port: u16) -> String {
491 let mut request = format!(
492 "CONNECT {host}:{port} HTTP/1.1\r\nHost: {host}:{port}\r\n",
493 host = host,
494 port = port
495 );
496
497 if let Some(auth) = self.intercept.maybe_auth() {
498 request = format!("{}{}", request, auth.get_proxy_authorization());
499 }
500
501 request.push_str("\r\n");
502 request
503 }
504}
505
506fn get_domain_and_port<'a, T: IntoTargetAddr<'a>>(target: T) -> Result<(String, u16), ProxyError> {

Callers 1

http_connectMethod · 0.80

Calls 1

maybe_authMethod · 0.80

Tested by

no test coverage detected