# \[ANN\] Cookie 0.1.6

**URL:** <https://discuss.ocaml.org/t/ann-cookie-0-1-6/5346>\
**Category:** Community\
**Tags:** web, opam, announce\
**Created:** [March 19, 2020, 8:01am UTC](https://discuss.ocaml.org/t/ann-cookie-0-1-6/5346 "2020-03-19T08:01:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ulrikstrid](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/ulrikstrid/32/1600_2.png) [@ulrikstrid](https://discuss.ocaml.org/u/ulrikstrid)\
**Post date:** [March 19, 2020, 8:01am UTC](https://discuss.ocaml.org/t/ann-cookie-0-1-6/5346/1 "2020-03-19T08:01:09Z")

</div>

I recently released a cookie library. It can parse and create cookie headers (`list((string, string)` which both Cohttp and Httpaf uses), both `Set-Cookie` and `Cookie` so it works on both client and server. It should be compliant with [https://tools.ietf.org/html/rfc6265](https://tools.ietf.org/html/rfc6265) and I have a pretty good test suite for the parsing of cookies at least.

I couldn’t find a standalone library before this so I decided to create one since I need it for my web framework, `Morph`.

The next step is to create and publish integrations with [`ocaml-session`](https://github.com/inhabitedtype/ocaml-session) which I have started.

Repo: [https://github.com/ulrikstrid/ocaml-cookie](https://github.com/ulrikstrid/ocaml-cookie)  
Docs: [https://ulrikstrid.github.io/ocaml-cookie](https://ulrikstrid.github.io/ocaml-cookie)
