Module Middleware.StaticSource
module Server = Cohttp_lwt_unix.ServerSourcetype t = {prefix : string;local_path : string;
} Sourceval legal_path : t -> string -> string option Sourceval public_serve :
t ->
requested:string ->
request_if_none_match:string option ->
?etag_of_fname:(string -> string) ->
?headers:Cohttp.Header.t ->
unit ->
[> `Not_found | `Ok of Opium_kernel.Rock.Response.t ] Lwt.t Sourceval m :
local_path_f:(unit -> string) ->
uri_prefix_f:(unit -> string) ->
?headers:Cohttp.Header.t ->
?etag_of_fname:(string -> string) ->
unit ->
Middleware__.Middleware_core.t