We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0cc598f + 0f21062 commit 553d447Copy full SHA for 553d447
src/clj_http/cookies.clj
@@ -137,3 +137,13 @@
137
[^CookieStore cookie-store]
138
(when cookie-store
139
(into {} (map to-cookie (.getCookies cookie-store)))))
140
+
141
+(defn add-cookie
142
+ "Add a ClientCookie to a cookie-store"
143
+ [^CookieStore cookie-store ^ClientCookie cookie]
144
+ (.addCookie cookie-store cookie))
145
146
+(defn clear-cookies
147
+ "Clears all cookies from cookie-store"
148
+ [^CookieStore cookie-store]
149
+ (.clear cookie-store))
0 commit comments