Skip to content

Commit

Permalink
feat(client): deprecated set_cookies_by_ref (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676e67 authored Feb 24, 2025
1 parent e02a70c commit 89f0166
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,10 @@ impl Client {
///
/// This method ensures that cookies are only set if at least one cookie
/// exists in the collection.
#[deprecated(
since = "2.2.0",
note = "Please use `set_cookies` with a collection of `HeaderValue` instead."
)]
#[cfg(feature = "cookies")]
pub fn set_cookies_by_ref<'a, C>(&self, url: &Url, cookies: C)
where
Expand Down

0 comments on commit 89f0166

Please sign in to comment.