Home
last modified time | relevance | path

Searched refs:host_port (Results 1 - 2 of 2) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
H A Dalt_svc.rs60 let mut host_port = words.next()?; in parse_alt_svc() variables
61 host_port = &host_port[1..host_port.len() - 1]; in parse_alt_svc()
62 let index = host_port.iter().position(|&x| x == b':')?; in parse_alt_svc()
66 Port::from_str(str::from_utf8(&host_port[1..]).ok()?).ok()?, in parse_alt_svc()
70 Some(Host::from_str(str::from_utf8(&host_port[..index]).ok()?).ok()?), in parse_alt_svc()
71 Port::from_str(str::from_utf8(&host_port[(index + 1)..]).ok()?).ok()?, in parse_alt_svc()
/commonlibrary/rust/ylong_http/ylong_http/src/request/uri/
H A Dmod.rs1124 let authority = host_port(&bytes[..end], colon_num)?; in authority_parse()
1179 fn host_port(auth: &[u8], colon_num: i32) -> Result<Authority, InvalidUri> { in host_port() functions

Completed in 2 milliseconds