package sihl

  1. Overview
  2. Docs

This module simplifies dealing with HTMX requests by adding type safe helpers to manipulate HTMX headers. Visit https://htmx.org/reference/ for the HTMX documentation.

val is_htmx : Request.t -> bool
val current_url : Request.t -> string option
val prompt : Request.t -> string option
val target : Request.t -> string option
val trigger_name : Request.t -> string option
val trigger_req : Request.t -> string option
val set_push : string -> Response.t -> Response.t
val set_redirect : string -> Response.t -> Response.t
val set_refresh : string -> Response.t -> Response.t
val set_trigger : string -> Response.t -> Response.t
val set_trigger_after_settle : string -> Response.t -> Response.t
val set_trigger_after_swap : string -> Response.t -> Response.t
val log_src : Logs.src
OCaml

Innovation. Community. Security.