Commit graph

156 commits

Author SHA1 Message Date
Rob Wagner
b20224728b
Update README.md 2024-11-01 18:46:38 -04:00
Rob Wagner
d31e2800a8
Allow clippy::too_long_first_doc_paragraph 2024-10-18 20:48:14 -04:00
Rob Wagner
5bcbc9cb10
Fix clippy complaints 2024-10-18 20:39:09 -04:00
Rob Wagner
600fb3fc3c
Remove unused error code 2024-10-18 20:38:50 -04:00
Rob Wagner
d06b84c98c
Update dependencies 2024-10-18 20:37:16 -04:00
Rob Wagner
9f18889135
Update CHANGELOG.md 2024-06-24 18:15:02 -04:00
Rob Wagner
f4871d6e37
Update doc comments 2024-06-24 18:12:19 -04:00
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