mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-20 00:00:11 +02:00
docs(axum-extra): fix CookieJar request header guidance (#3847)
This commit is contained in:
@@ -143,8 +143,8 @@ impl CookieJar {
|
||||
/// This is intended to be used in middleware and other places where it might be difficult to
|
||||
/// run extractors. Normally you should create `CookieJar`s through [`FromRequestParts`].
|
||||
///
|
||||
/// If you need a jar that contains the headers from a request use `impl From<&HeaderMap> for
|
||||
/// CookieJar`.
|
||||
/// If you need a jar that contains the headers from a request, use
|
||||
/// [`CookieJar::from_headers`].
|
||||
///
|
||||
/// [`FromRequestParts`]: axum::extract::FromRequestParts
|
||||
pub fn new() -> Self {
|
||||
|
||||
Reference in New Issue
Block a user