package sihl

  1. Overview
  2. Docs

Module Web.CsrfSource

Sourceval find : Request.t -> string option

find request returns the CSRF token of the current request. Make sure that the CSRF middleware is installed.

Sourceval find_exn : Request.t -> string

find_exn request returns the CSRF token of the current request. If the CSRF middleware is not installed, an exception is raised.

Sourceval log_src : Logs.src
Sourcemodule Crypto : sig ... end
OCaml

Innovation. Community. Security.