package sihl

  1. Overview
  2. Docs

Module Web.HtmxSource

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.

Sourceval is_htmx : Rock.Request.t -> bool
Sourceval current_url : Rock.Request.t -> string option
Sourceval prompt : Rock.Request.t -> string option
Sourceval target : Rock.Request.t -> string option
Sourceval trigger_name : Rock.Request.t -> string option
Sourceval trigger_req : Rock.Request.t -> string option
Sourceval set_push : string -> Rock.Response.t -> Rock.Response.t
Sourceval set_redirect : string -> Rock.Response.t -> Rock.Response.t
Sourceval set_refresh : string -> Rock.Response.t -> Rock.Response.t
Sourceval set_trigger : string -> Rock.Response.t -> Rock.Response.t
Sourceval set_trigger_after_settle : string -> Rock.Response.t -> Rock.Response.t
Sourceval set_trigger_after_swap : string -> Rock.Response.t -> Rock.Response.t
OCaml

Innovation. Community. Security.