Commit graph

34 commits

Author SHA1 Message Date
Rob Wagner
36df71fb2f
Adds a helper From<T> impl for basic HxResponseTrigger* variants.
This is purely to help make the public API more friendly and less verbose.
2023-10-24 00:26:31 -04:00
Rob Wagner
f406f74591
Add a test for the double-escape bug 2023-10-23 23:13:31 -04:00
Rob Wagner
6c7ddeec19
Add Debug to HxError 2023-10-23 23:13:09 -04:00
Rob Wagner
a1bac4b30e
Remove unnecessary .to_string() call when creating a header from JSON data
The original version would double quote values, resulting in serde_json inserting
escape characters into the final string value, which prevented the header from
being parsed by htmx properly.
2023-10-23 22:52:01 -04:00
Rob Wagner
40243f32da
Add missing comment on HxEvent 2023-10-23 22:09:52 -04:00
Rob Wagner
b4f2dcbd88
Comments for API docs 2023-10-23 21:54:49 -04:00
Rob Wagner
145abcc92a
Shorten import path in comments 2023-10-23 21:40:21 -04:00
Rob Wagner
435cbf56db
Update comments; fix naming on serde::Hx* variants 2023-10-23 21:37:20 -04:00
Rob Wagner
9faaea4f4e
Minor code cleanup 2023-10-23 21:08:00 -04:00
Rob Wagner
9fcd534468
Add missing backtick 2023-10-23 21:07:20 -04:00
Rob Wagner
0156ceb268
Simplify boolean expression 2023-10-23 21:05:57 -04:00
Rob Wagner
3928b9f407
Take &str instead of String for HxEvent::new_* fns 2023-10-23 21:04:06 -04:00
Rob Wagner
22e81e0d0b
Comment cleanup 2023-10-23 21:01:21 -04:00
Rob Wagner
d551c4cd8e
Minor documentation / code cleanup 2023-10-23 20:48:44 -04:00
e784674f2e
remove responder HxTrigger name collision 2023-10-23 20:43:16 +02:00
ad16b10fc6
provide basic responder functionality without serde, json features with serde feature 2023-10-22 20:45:48 +02:00
a32274e280
first responders implementation 2023-10-22 15:36:20 +02:00
Rob Wagner
19aadd8eab
Document new guard behaviour 2023-07-29 17:05:05 -04:00
Rob Wagner
a07426695a
Redirect on HxRequest guard failures 2023-07-29 16:04:51 -04:00
Rob Wagner
8befd4414b
Add missing module doc 2023-07-27 22:38:07 -04:00
Rob Wagner
6c0a8cde21
Add router request guard layer 2023-07-27 21:58:53 -04:00
Rob Wagner
bddfc01f97
Add missing derives on HxHistoryRestoreRequest 2023-07-22 18:57:30 -04:00
Rob Wagner
07b22697a2
Update documentation 2023-07-22 18:56:14 -04:00
Rob Wagner
b07401cdff
Update doc comments 2023-07-22 18:38:20 -04:00
Rob Wagner
43a16eb708
Rename request module to extractors 2023-07-22 18:24:51 -04:00
Rob Wagner
088d0857f0
Keep naming consistent w/ lib even though it conflicts with htmx docs 2023-07-22 18:22:01 -04:00
Rob Wagner
cd6c700082
Restructuring 2023-07-22 18:20:29 -04:00
Rob Wagner
e08a2874a7
Export request/response modules from base lib module 2023-07-22 17:59:06 -04:00
Rob Wagner
67bc6fecaa
Fix spacing issue 2023-07-22 17:58:36 -04:00
Rob Wagner
5fcf0c1e94
Add remaining request header extractors 2023-07-22 17:47:48 -04:00
Rob Wagner
119b01c592
Split request and response headers into seperate modules 2023-07-22 17:36:28 -04:00
Rob Wagner
b3a0bec28c
Add HX-Request and HX-Target 2023-07-22 17:19:55 -04:00
Rob Wagner
f5680852cd
Rename header enums with the Htmx prefix 2023-07-22 17:07:15 -04:00
Rob Wagner
ad8c771f0a
Initial commit 2023-07-22 16:37:15 -04:00