package sihl

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

Source file middleware_security.ml

1
2
3
4
5
6
7
8
9
10
(* TODO Set a couple of headers:
   https://github.com/django/django/blob/master/django/middleware/security.py *)

let m =
  let filter handler req =
    Logs.warn (fun m -> m "security middleware is not implemented");
    handler req
  in
  Opium.Std.Rock.Middleware.create ~name:"security" ~filter
;;
OCaml

Innovation. Community. Security.