Skip to main content

request_is_hx

Function request_is_hx 

Source
pub fn request_is_hx(request: Option<&HttpRequest>) -> bool
Expand description

Detects the HTMX request header using case-insensitive line parsing.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::dynamic::request_is_hx holds and false otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::dynamic::request_is_hx.

§Examples

ⓘ
let _result = pharos_native::runtime::dynamic::request_is_hx(todo!());