forked from LukeMathWalker/pavex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cookies integration (LukeMathWalker#234)
We re-export `biscotti` as our cookie API, with one key difference: we don't re-export `ResponseCookies` as is. We instead expose our own `ResponseCookies` type that wraps around `biscotti`'s one, constraining its generic lifetime to be `'static` since that's what the vast majority of applications will need. The integration is not yet ready for prime time—we need a section in the guide. But that'll come in a follow-up PR. Other changes: - Pavex gained a top-level `error` module, where I added an `UnexpectedError` type. Almost any application defines one as a "catch-all" error variant, therefore it looked like a win to make it first-party since we need it anyway for our own error enums.
- Loading branch information
1 parent
5b1eee7
commit 397dc04
Showing
17 changed files
with
3,654 additions
and
1,023 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.