Enum Class HtmxRequestHeader
- All Implemented Interfaces:
Serializable,Comparable<HtmxRequestHeader>,Constable
Enum representing the request headers used by htmx.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the request comes from an element that uses hx-boost.The current URL of the browserIndicates if the request is for history restoration after a miss in the local history cache.Contains the user response to a hx-prompt.Only present andtrueif the request is issued by htmx.Theidof the target element if it exists.Theidof the triggered element if it exists.Thenameof the triggered element if it exists -
Method Summary
Modifier and TypeMethodDescriptiongetValue()static HtmxRequestHeaderReturns the enum constant of this class with the specified name.static HtmxRequestHeader[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HX_BOOSTED
Indicates that the request comes from an element that uses hx-boost.- See Also:
-
HX_CURRENT_URL
The current URL of the browser- See Also:
-
HX_HISTORY_RESTORE_REQUEST
Indicates if the request is for history restoration after a miss in the local history cache.- See Also:
-
HX_PROMPT
Contains the user response to a hx-prompt.- See Also:
-
HX_REQUEST
Only present andtrueif the request is issued by htmx.- See Also:
-
HX_TARGET
Theidof the target element if it exists.- See Also:
-
HX_TRIGGER_NAME
Thenameof the triggered element if it exists- See Also:
-
HX_TRIGGER
Theidof the triggered element if it exists.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-