mizchi/crater-browser-http/cache does not have a README file
pub(open) trait HttpCacheBackend {
fn lookup(Self, String) -> CacheEntry?
fn store(Self, CacheEntry) -> Unit
fn remove(Self, String) -> Unit
fn clear(Self) -> Unit
}pub(all) struct CacheDirectives {
max_age : Int?
no_cache : Bool
no_store : Bool
must_revalidate : Bool
public_ : Bool
private_ : Bool
immutable : Bool
} derive(Debug)impl Show for CacheDirectivespub(all) struct CacheEntry {
url : String
status : Int
headers : Map[String, String]
body : String
etag : String?
last_modified : String?
directives : CacheDirectives
stored_at : Double
} derive(Debug)impl HttpCacheBackend for MemoryCacheBackendfn[CacheBackend : HttpCacheBackend] cached_fetch(url~ : String, options~ : FetchOptions, cache~ : CacheBackend, fetcher~ : (String, FetchOptions) -> HttpResponse raise HttpError) -> HttpResponse raise HttpErrorasync fn[CacheBackend : HttpCacheBackend] cached_fetch_async(url~ : String, options~ : FetchOptions, cache~ : CacheBackend, fetcher~ : async (String, FetchOptions) -> HttpResponse raise HttpError) -> HttpResponse raise HttpErrorfn is_cacheable_status(status : Int) -> Boolfn now_seconds() -> DoubleHTTP, cache, cookie, and request sandbox helpers for crater browser
Dependencies