Module Sihl__.Web_csrf

val log_src : Logs.src
module Logs : Logs.LOG
exception Exception of string
val key : string Opium.Context.key
val find : Opium.Request.t -> string option
val find_exn : Opium.Request.t -> string
val set : string -> Opium.Request.t -> Opium.Request.t
val default_not_allowed_handler : 'a -> Opium.Response.t Lwt.t
val hash : with_secret:string -> string -> string
val verify : with_secret:string -> hashed:Stdlib.String.t -> string -> bool
val middleware : ?⁠not_allowed_handler:(Opium.Request.t -> Opium.Response.t Lwt.t) -> ?⁠cookie_key:string -> ?⁠input_name:string -> ?⁠secret:Stdlib.String.t -> unit -> Rock.Middleware.t