MCPcopy Create free account
hub / github.com/emilk/ehttp / fetch_async_streaming

Function fetch_async_streaming

ehttp/src/streaming/web.rs:17–24  ·  view source on GitHub ↗
(
    request: &Request,
)

Source from the content-addressed store, hash-verified

15/// `Err` is only for failure to use the fetch API.
16#[cfg(feature = "streaming")]
17pub async fn fetch_async_streaming(
18 request: &Request,
19) -> crate::Result<impl Stream<Item = crate::Result<Part>>> {
20 let stream = fetch_jsvalue_stream(request)
21 .await
22 .map_err(string_from_fetch_error)?;
23 Ok(stream.map(|result| result.map_err(string_from_fetch_error)))
24}
25
26#[cfg(feature = "streaming")]
27async fn fetch_jsvalue_stream(

Callers

nothing calls this directly

Calls 1

fetch_jsvalue_streamFunction · 0.85

Tested by

no test coverage detected