diff options
| author | A Farzat <a@farzat.xyz> | 2026-02-11 10:09:32 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-02-11 10:09:32 +0300 |
| commit | 3321918c009e9d7a7a3c3c2a1f490bb91fefb2bc (patch) | |
| tree | 261a7228b3199c689e6970effd9bb8d4fc609531 /src/cookies.rs | |
| parent | 001304d3f27a5fa1ca4d06d4c352d248b45640e0 (diff) | |
| download | safaribooks-rs-3321918c009e9d7a7a3c3c2a1f490bb91fefb2bc.tar.gz safaribooks-rs-3321918c009e9d7a7a3c3c2a1f490bb91fefb2bc.zip | |
Add reqwest HttpClient skeleton (cookies-only)
- Build a reqwest::Client with Cookie and browser-like default headers
- Wire into main without performing any HTTP calls
Note: Keep cookie header internal; never log values
Diffstat (limited to 'src/cookies.rs')
| -rw-r--r-- | src/cookies.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cookies.rs b/src/cookies.rs index 4e33dcc..f7b0a63 100644 --- a/src/cookies.rs +++ b/src/cookies.rs @@ -26,7 +26,7 @@ pub struct CookieStore { impl CookieStore { /// Create a CookieStore from a serde_json::Value (already parsed). - fn from_value(v: Value) -> anyhow::Result<Self> { + pub fn from_value(v: Value) -> anyhow::Result<Self> { // Try to deserialize into either a map or a list. let cj: CookiesJson = serde_json::from_value(v)?; let mut map = HashMap::new(); |
