Up – Package index » statocaml_github » Library statocaml_github » Statocaml_github » CacheModule Statocaml_github.Cache Source Source type policy = | No_cache | Cache_read | Cache_store Source type error = | No_scheme of Iri.t | No_host of Iri.t | Unexpected_json of Yojson .Safe.t| Missing_json_field of stringSource val unexpected_json : Yojson .Safe.t -> 'a Source val missing_json_field : string -> 'a Source val fp_append : Fpath .t -> Fpath .t -> Fpath .tSource val json_get :
map :
[> `Bool of bool -> 'a
| `Int of int -> 'a
| `Json of Yojson .Safe.t -> 'a
| `String of string -> 'a ] ->
string ->
(string * Yojson .Safe.t) list ->
'a Source val string_of_encoding : Cohttp .Transfer.encoding -> stringSource val encoding_of_string : string -> Cohttp .Transfer.encoding
Source val response_of_json : Yojson .Safe.t -> Cohttp .Response.t
Source val json_of_response :
Cohttp .Response.t ->
[> `Assoc of
(string
* [> `Assoc of (string * [> `String of string ] ) list
| `Bool of bool
| `Int of int
| `String of string ] )
list ] Source val safe_mkdir : ?perm :Lwt_unix .file_perm -> Fpath .t -> unit Lwt.t Source val store_resource :
Fpath .t ->
Iri.t ->
Cohttp .Response.t ->
string ->
unit Lwt.t Source val date_rfc1123_fmt : string
Source val read_resource : Fpath .t -> (Cohttp .Response.t * string) option Lwt.t