Commit graph

69 commits

Author SHA1 Message Date
imbolc
39e6f9028b Docs 2024-06-16 12:43:22 +06:00
imbolc
386662b0a8 Middleware as tower layer 2024-06-15 17:15:22 +06:00
imbolc
57e3e067b1 Feature 2024-06-15 15:18:49 +06:00
imbolc
693707bdfa Optimize middleware 2024-06-15 14:33:03 +06:00
imbolc
535b19fff8 Move insert_into_extensions into Notifier trait 2024-06-15 13:40:22 +06:00
imbolc
cdbd892f85 Define notifiers with macro rules 2024-06-15 13:34:27 +06:00
imbolc
5220c8b861 The remaining extractors 2024-06-15 13:18:39 +06:00
imbolc
c6f8bcb504 cargo fmt 2024-05-14 16:40:29 +06:00
imbolc
f622f12bba Draft 2024-05-14 15:31:02 +06:00
imbolc
eaaef70f65 Remove strings duplication 2024-05-14 09:37:28 +06:00
Rob Wagner
5b24a9522d
Fix typing mismatch
If we're going to use typed header names and values, we'll have to
duplicate some of the string literals across the two. Not a big deal.
2024-05-13 18:42:45 -04:00
Rob
c673414685
Merge pull request #19 from imbolc/const-header-names
Typed header names
2024-05-13 18:09:59 -04:00
imbolc
01d5e5d067 Typed header names 2024-05-08 10:57:40 +06:00
imbolc
4795249100 Merge branch 'main' into vary 2024-05-08 09:01:09 +06:00
imbolc
7a7c7e5ae9 Impl StdError::source for HxError, closes #16 2024-05-07 06:46:33 +06:00
imbolc
59a07a1e4a Allow multiple vary headers 2024-05-06 10:41:03 +06:00
imbolc
d0db3a4042 Vary headers, closes #14 2024-04-30 10:53:00 +06:00
imbolc
ea28c12bb6 A typo 2024-04-30 10:40:10 +06:00
Rob Wagner
e8a0b94d03
Update docs to specify response parts ordering (fixes #11) 2023-12-14 20:48:54 -05:00
Rob Wagner
4162bd8760
HxEvent::new takes AsRef<str>; removed redundant .to_string() 2023-12-03 16:06:06 -05:00
Rob Wagner
29dbadc8bc
Formatting 2023-12-03 15:56:03 -05:00
Rob Wagner
035c9c0e5e
Minor stylistic tweaks 2023-12-03 15:50:40 -05:00
ItsEthra
2d3b94d37d Moved HxError && implemented Error trait 2023-12-03 22:41:37 +03:00
ItsEthra
c1c54a17f5 Inlined reexports 2023-12-03 22:38:43 +03:00
ItsEthra
8e1094e043 Generalized response impls 2023-12-03 22:38:24 +03:00
ItsEthra
9c894b8d19 Added more from impls for responders 2023-12-03 19:33:52 +03:00
ItsEthra
523cbb0371 Added helper methods to HxLocation 2023-12-03 18:56:28 +03:00
ItsEthra
d7a8ee55b1 Hidden ResponseFuture type 2023-12-03 15:16:33 +03:00
ItsEthra
140a74c071 Use http::Uri in HxCurrentUrl 2023-12-03 15:13:07 +03:00
ItsEthra
a04e131a69 Combined HxResposeTrigger* into one struct 2023-12-03 15:04:17 +03:00
ItsEthra
f07518d5a2 Fixed docs 2023-12-01 22:46:54 +03:00
ItsEthra
1dfff29673 Moved HxLocation && HxTrigger* into different modules 2023-12-01 22:05:31 +03:00
ItsEthra
a223399361 Code dedup 2023-12-01 21:41:42 +03:00
ItsEthra
3f23ac7251 Use axum-core,async-trait,http instead of axum 2023-11-30 23:01:19 +03:00
ItsEthra
63efc3ffd5 Generate docs with cfg badges 2023-11-30 18:12:37 +03:00
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