Skip to main content

fetch

Function fetch 

Source
pub async fn fetch(
    endpoint: &IrohEndpoint,
    remote_node_id: &str,
    url: &str,
    method: &str,
    headers: &[(String, String)],
    req_body_reader: Option<BodyReader>,
    fetch_token: Option<u64>,
    direct_addrs: Option<&[SocketAddr]>,
    timeout: Option<Duration>,
    decompress: bool,
    max_response_body_bytes: Option<usize>,
) -> Result<FfiResponse, CoreError>
Expand description

FFI-shaped fetch — re-exported as iroh_http_core::fetch for FFI binary compatibility (Slice D acceptance #5). Composition mirrors the pre-Slice-D function exactly; the moving parts that became pure Rust live in crate::http::client::fetch_request.