ocaml-cohttp
ocaml-cohttp copied to clipboard
Cookies: work better with Header.t
Right now the Cookie module works with string * string pairs, but it would be easier if it used the Header module directly (it was written before Header existed).
Should cookies also work directly with response/request? It will make it harder to make the mistake of using the wrong cookie module. For example using Set_cookie_hdr with Request
I'm inclined to leave this as-is for 1.0, or perhaps add a helper function to Header
type cookie is still string * string, but we're in a glorious post-1.0 future for Cohttp, so I've reset the milestone to 2.0.
Time sure does fly when you're having fun with http...