MCPcopy Create free account
hub / github.com/06chaynes/http-cache / http_cache

Method http_cache

http-cache/src/error.rs:468–470  ·  view source on GitHub ↗

Create an HTTP cache streaming error # Examples ```rust use http_cache::{ClientStreamingError, StreamingError}; let streaming_err = StreamingError::io("File read failed"); let err = ClientStreamingError::http_cache(streaming_err); ```

(error: StreamingError)

Source from the content-addressed store, hash-verified

466 /// let err = ClientStreamingError::http_cache(streaming_err);
467 /// ```
468 pub fn http_cache(error: StreamingError) -> Self {
469 Self::HttpCache(error)
470 }
471
472 /// Create a generic streaming error
473 ///

Callers

nothing calls this directly

Calls 1

HttpCacheClass · 0.85

Tested by

no test coverage detected