package sihl

  1. Overview
  2. Docs
The Sihl web framework

Install

dune-project
 Dependency

Authors

Maintainers

Sources

3.0.4.tar.gz
md5=8a2754d6e5b9eafb8ff332abdb1ceb7d
sha512=3230a1315686b0b6f90a41ceda27ab036e178184ab13d5a98f64d6d987caf4a8a5d94ed78bc8e79b0ee3b40ccbb1dbdc71ffe171f1aef1f18aba81fc720e3a1b

doc/sihl/Sihl/Web/Htmx/index.html

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 : Request.t -> bool
Sourceval current_url : Request.t -> string option
Sourceval prompt : Request.t -> string option
Sourceval target : Request.t -> string option
Sourceval trigger_name : Request.t -> string option
Sourceval trigger_req : Request.t -> string option
Sourceval set_push : string -> Response.t -> Response.t
Sourceval set_redirect : string -> Response.t -> Response.t
Sourceval set_refresh : string -> Response.t -> Response.t
Sourceval set_trigger : string -> Response.t -> Response.t
Sourceval set_trigger_after_settle : string -> Response.t -> Response.t
Sourceval set_trigger_after_swap : string -> Response.t -> Response.t
Sourceval log_src : Logs.src