package opium

  1. Overview
  2. Docs

Source file opium.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
module App = App

module App_export = struct
  module App = App

  (* selectively export the most useful parts of App *)
  let param = App.param

  let splat = App.splat

  let respond = App.respond

  let respond' = App.respond'

  let redirect = App.redirect

  let redirect' = App.redirect'

  let not_found = App.not_found

  let get = App.get

  let post = App.post

  let put = App.put

  let delete = App.delete

  let all = App.all

  let any = App.any

  let middleware = App.middleware
end

module Middleware = struct
  (** Re-exports simple middleware that doesn't have auxiliary functions *)
  let debug = Debug.debug

  let trace = Debug.trace

  let static = Static_serve.m
end

module Std = struct
  include Opium_kernel.Std
  module Middleware = Middleware
  include App_export
  module Body = Cohttp_lwt.Body
end

module Hmap = Opium_kernel.Hmap
OCaml

Innovation. Community. Security.