Skip to content

Commit

Permalink
feat: implement conversion from libcookie to poem cookie (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickariel authored Nov 25, 2024
1 parent 4d57961 commit 2d335ea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions poem/src/web/cookie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,12 @@ impl<'a> FromRequest<'a> for Cookie {
}
}

impl From<libcookie::Cookie<'static>> for Cookie {
fn from(value: libcookie::Cookie<'static>) -> Self {
Self(value)
}
}

/// A collection of cookies that tracks its modifications.
///
/// # Example
Expand Down

0 comments on commit 2d335ea

Please sign in to comment.