Skip to main content

connect_pinned_hashes_path

Function connect_pinned_hashes_path 

Source
pub async fn connect_pinned_hashes_path(
    addr: SocketAddr,
    cert_hashes: &[[u8; 32]],
    path: &str,
) -> Result<Session>
Expand description

Build a quinn WebTransport client session against a self-signed server at an explicit URL path (e.g. /moq for the moq plane vs / for RPC), accepting the leaf cert if its SHA-256 is any of cert_hashes. Hermetic: dials an IP-literal URL so no DNS lookup occurs. Mirrors connect_pinned_hashes but lets the caller select the path the server path-dispatches on (#274).