package tiny_httpd

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Dir.Embedded_fsSource

An embedded file system, as a list of files with (relative) paths. This is useful in combination with the "tiny-httpd-mkfs" tool, which embeds the files it's given into a OCaml module.

  • since 0.12
Sourcetype t

The pseudo-filesystem

Sourceval create : ?mtime:float -> unit -> t
Sourceval add_file : ?mtime:float -> t -> path:string -> string -> unit

Add file to the virtual file system.

  • raises Invalid_argument

    if the path contains '..' or if it tries to make a directory out of an existing path that is a file.

Sourceval to_vfs : t -> (module VFS)
OCaml

Innovation. Community. Security.