Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Virtual file system.
This is used to emulate a file system from pure OCaml functions and data, e.g. for resources bundled inside the web server.
file_exists vfs path
returns true
if path
points to a file or directory inside vfs
.
List directory. This only returns basenames, the files need to be put in the directory path using Filename.concat
.
Create a file and obtain a pair write, close
val read_file_content : string -> Tiny_httpd_stream.t
Read content of a file