(
request: &Request,
)
| 15 | /// `Err` is only for failure to use the fetch API. |
| 16 | #[cfg(feature = "streaming")] |
| 17 | pub 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")] |
| 27 | async fn fetch_jsvalue_stream( |
nothing calls this directly
no test coverage detected