ocaml http/1, http/2 and websocket client and server library
1(** Plug-based middleware composition.
2
3 A plug is a function that wraps a handler, allowing pre/post processing of
4 requests and responses. Inspired by Phoenix/Elixir's plug system.
5
6 {1 Usage}
7
8 {[
9 open Hcs
10
11 let pipeline =
12 Plug.Logger.create ~clock logger
13 @> Plug.Compress.create ()
14 @> Plug.Timeout.create ~clock 30.0
15 @> Plug.identity
16
17 let handler = Plug.apply pipeline my_handler
18 ]} *)
19
20include Core
21module Logger = Logger
22module Request_id = Request_id
23module Head = Head
24module Timeout = Timeout
25module Recover = Recover
26module Cors = Cors
27module Rate_limit = Rate_limit
28module Etag = Etag
29module Cache_control = Cache_control
30module Static = Static
31module Compress = Compress
32module Circuit_breaker = Circuit_breaker
33module Retry = Retry
34module Basic_auth = Basic_auth
35module Csrf = Csrf
36module Negotiate = Negotiate
37module Token = Token
38module Session = Session