mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 03:05:29 -05:00
cleanup
This commit is contained in:
parent
d8ff243e8d
commit
84adbb13b2
2 changed files with 0 additions and 13 deletions
|
|
@ -6,10 +6,6 @@ module Middleware = struct
|
|||
type handler = IO.Input.t Request.t -> resp:(Response.t -> unit) -> unit
|
||||
type t = handler -> handler
|
||||
|
||||
(** Apply a list of middlewares to [h] *)
|
||||
let apply_l (l : t list) (h : handler) : handler =
|
||||
List.fold_right (fun m h -> m h) l h
|
||||
|
||||
let[@inline] nil : t = fun h -> h
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -203,15 +203,6 @@ let html_list_dir (module VFS : VFS) ~prefix ~parent d : Html.elt =
|
|||
in
|
||||
html [] [ head; body ]
|
||||
|
||||
let finally_ ~h x f =
|
||||
try
|
||||
let y = f x in
|
||||
h x;
|
||||
y
|
||||
with e ->
|
||||
h x;
|
||||
raise e
|
||||
|
||||
(* @param on_fs: if true, we assume the file exists on the FS *)
|
||||
let add_vfs_ ~on_fs ~top ~config ~vfs:((module VFS : VFS) as vfs) ~prefix server
|
||||
: unit =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue