HtmlactHtmlit HTML generation and Webs HTTP headers.
These functions help generate htmlact data attributes and HTTP headers with Htmlit and Webs. Ignore if you are using something else to generate your HTML or interact with HTTP.
request ~method' r is a data-request attribute for URL r using method method' (defaults to `GET).
request ~meth p is a data-request attribute for URL p using method method' (defaults to `GET).
query sel is the data-query attribute sel.
query_rescue b is the data-query-rescue attribute b.
event_src sel is the data-event-src attribute sel.
val event :
?once:bool ->
?debounce_ms:dur_ms ->
?throttle_ms:dur_ms ->
?filter:string ->
string ->
Htmlit.At.tevent () is the data-event attribute ev.
target sel is the data-target attribute sel.
The type for kind of request effects.
val effect : effect_kind -> Htmlit.At.teffect e is the data-effect attribute e.
feedback sel is the data-feedback attribute sel.
type referrer_policy = [ | `No_referrer| `No_referrer_when_downgrade| `Origin| `Origin_when_cross_origin| `Same_origin| `Strict_origin| `Strict_origin_when_cross_origin| `Unsafe_url| `Other of string ]The type for referrer policies.
val referrer_policy : referrer_policy -> Htmlit.At.treferrer_policy policy is the data-referrer-policy attribute policy.
module Dur : sig ... endNamed durations.
htmlact is the htmlact header.
redirect is the htmlact-redirect header.
reload is the htmlact-reload header.
location_push is the htmlact-location-push header.
location_replace is the htmlact-location-replace header.
location_title is the htmlact-location-title header.
encode_location_title s encodes s for the location_title headers.