I am trying to create a client cookie for clj-http so that I can set a cookie for a request. Currently I have the cookie data in the format [cookie-name cookie-val]
I then call to-basic-client-cookie like so:
(clj-http.cookies/to-basic-client-cookie [cookie-name cookie-val])
However, this produces a null pointer exception. Anyone know if I am calling this wrong? Pretty new to clojure, so sorry if this is a dumb question.
It's looks like the value should be a map, and the map must at least contain the
:value
key:In the code you can see all the other possible cookie content keys: