Commit graph

149 commits

Author SHA1 Message Date
Rob Wagner
d36468f9d5
Update doc comments 2024-06-24 18:11:00 -04:00
Rob Wagner
b15c850197
Update README.md 2024-06-24 18:10:36 -04:00
Rob Wagner
2ff8a65974
Update CHANGELOG.md 2024-06-24 18:08:58 -04:00
Rob Wagner
0134afd384
Update CHANGELOG.md 2024-06-24 18:07:29 -04:00
Rob
1c4fa34f58
Merge pull request #21 from imbolc/vary-middleware
Add middleware for automatic handling of Vary headers
2024-06-20 19:23:57 -04:00
imbolc
39e6f9028b Docs 2024-06-16 12:43:22 +06:00
imbolc
13fb55de9a Example 2024-06-16 12:43:14 +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
cbfe4782d8 Up axum-test 2024-06-15 14:39:07 +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
Rob
535d57a3b5
Merge pull request #20 from imbolc/strings-duplication
Remove strings duplication
2024-05-13 23:42:37 -04:00
imbolc
eaaef70f65 Remove strings duplication 2024-05-14 09:37:28 +06:00
Rob Wagner
688ae20967
Update CHANGELOG.md 2024-05-13 19:06:24 -04:00
Rob Wagner
2de11149bf
disable stable/beta toolchains for ci 2024-05-13 18:58:31 -04: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 Wagner
a81dff414c
Add ci workflow 2024-05-13 18:40:02 -04:00
Rob
c673414685
Merge pull request #19 from imbolc/const-header-names
Typed header names
2024-05-13 18:09:59 -04:00
Rob
840ba216bb
Merge pull request #15 from imbolc/vary
Vary
2024-05-09 08:42:55 -04:00
imbolc
ac71a27a1b Don't forget about api break 2024-05-08 11:11:00 +06: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
Rob
e4ec2dfc69
Merge pull request #17 from imbolc/error-source
Impl StdError::source for HxError, closes #16
2024-05-07 08:58:58 -04: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
1edbce34be
Typo 2023-12-03 16:47:55 -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
9d559d0041
Update README.md 2023-12-03 15:55:56 -05:00
Rob Wagner
035c9c0e5e
Minor stylistic tweaks 2023-12-03 15:50:40 -05:00
Rob Wagner
97b72850f5
Update CHANGELOG.md 2023-12-03 15:47:28 -05:00
Rob Wagner
b9261c0988
Update README.md 2023-12-03 15:47:22 -05:00
Rob Wagner
3859d9beb6
Update README.md 2023-12-03 15:33:27 -05:00
Rob Wagner
3ac0d5ac49
Update to v0.5 2023-12-03 15:20:09 -05:00
Rob
1b3febbf16
Merge pull request #9 from ItsEthra/code-dedup
Merged serde responders to remove code 

- Removed responders::serde, now all triggers in responders module use HxEvent which has additional data fields when serde feature is enabled.
- Removed responders::serde::HxLocation, now responders::HxLocation is a struct with a uri field and additional options field when serde feature is enabled.
- HxResponseTrigger* responders are now in responders/trigger.rs, HxLocation responder is now in responders/location.rs.
- Implemented TryFrom<&str> for uri-like responders.
- Renamed HxError::Serialization to HxError::Json.
- Added test for HxLocation serialization.
- Do not add HxResponseTrigger* header if there are no events.
2023-12-03 15:18:12 -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