Skip to main content

connect_pinned_hashes_path_with_headers

Function connect_pinned_hashes_path_with_headers 

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

connect_pinned_hashes_path variant that attaches extra HTTP/3 CONNECT headers to the WebTransport request — used by #1153 to carry the Authorization: Bearer <jwt> credential the /moq endpoint verifies at CONNECT time. Hermetic: dials an IP-literal URL.