package sihl

  1. Overview
  2. Docs

Module Web.HtmxSource

This module simplifies dealing with htmx requests in a type safe way. Visit https://htmx.org/reference/ for the htmx documentation.

Sourceexception Exception
Sourceval is_htmx : Rock.Request.t -> bool
Sourceval current_url : Rock.Request.t -> string
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 option -> Rock.Response.t -> Rock.Response.t
Sourceval set_redirect : string option -> Rock.Response.t -> Rock.Response.t
Sourceval set_refresh : string option -> Rock.Response.t -> Rock.Response.t
Sourceval set_trigger : string option -> Rock.Response.t -> Rock.Response.t
Sourceval set_trigger_after_settle : string option -> Rock.Response.t -> Rock.Response.t
Sourceval set_trigger_after_swap : string option -> Rock.Response.t -> Rock.Response.t
Sourceval add_htmx_resp_header : string -> string option -> Rock.Response.t -> Rock.Response.t
OCaml

Innovation. Community. Security.