Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add how to use Arc<AppState> with the cookies examples #1560

Merged
merged 1 commit into from Nov 21, 2022

Conversation

woile
Copy link
Contributor

@woile woile commented Nov 21, 2022

Motivation

Discussed here

Solution

Add information about how to do it. I didn't want to be vague with the solution, so I included David's whole sample. But if you prefer otherwise I'll update 馃憤馃徎

axum-extra/src/extract/cookie/private.rs Outdated Show resolved Hide resolved
axum-extra/src/extract/cookie/signed.rs Outdated Show resolved Hide resolved
Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@davidpdrsn davidpdrsn enabled auto-merge (squash) November 21, 2022 10:14
@davidpdrsn
Copy link
Member

@woile seems the doc tests failed. Do you wanna take a look?

auto-merge was automatically disabled November 21, 2022 11:39

Head branch was pushed to by a user without write access

@davidpdrsn davidpdrsn merged commit ddee1c1 into tokio-rs:main Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants