mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-08 12:15:41 -05:00
18 lines
395 B
OCaml
18 lines
395 B
OCaml
|
|
type dir_behavior =
|
|
Index | Forbidden | Lists
|
|
|
|
type config = {
|
|
mutable download: bool;
|
|
mutable dir_behavior: dir_behavior;
|
|
mutable delete: bool;
|
|
mutable upload: bool;
|
|
mutable max_upload_size: int;
|
|
}
|
|
|
|
val default_config : unit -> config
|
|
|
|
val add_dir_path : config:config ->
|
|
dir:string ->
|
|
prefix:string ->
|
|
Tiny_httpd.t -> unit
|