# \[ANN\] http-cookie v4.2.0

**URL:** <https://discuss.ocaml.org/t/ann-http-cookie-v4-2-0/8441>\
**Category:** Community\
**Tags:** web, announce\
**Created:** [September 8, 2021, 9:14am UTC](https://discuss.ocaml.org/t/ann-http-cookie-v4-2-0/8441 "2021-09-08T09:14:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![BikalGurung](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/bikalgurung/32/5105_2.png) [@BikalGurung](https://discuss.ocaml.org/u/BikalGurung)\
**Post date:** [September 8, 2021, 9:14am UTC](https://discuss.ocaml.org/t/ann-http-cookie-v4-2-0/8441/1 "2021-09-08T09:14:26Z")

</div>

Dear OCamlers,

I am pleased to announce v4.\* series release of `http-cookie`. The v4 release contains many new enhancements to make working with cookies in OCaml web applications a little bit easier.

v4._._ release series features the following additions and changes:

1. Add pretty printers - `pp, pp_date_time and pp_same_site`. These can be used during debugging and in a OCaml toplevel session
2. Flatten out `Same_site` module
3. Add `of_cookie` to parse `Cookie` header.
4. Add `of_set_cookie` to parse `Set-Cookie` header. This can be used by http client applications
5. Rename `of_cookie_header` to `of_cookie`, `to_cookie_header_value` to `to_cookie`, `to_set_cookie_header_value` to `to_set_cookie` to enhance API ergonomics
6. Add validation for cookie `domain` value which consists of - host name, IPv4 and IPv6 - to conform to their respective RFC specs - Domain name RFC(RFC 1034), RFC 1123 and draft IPv4 and IPv6 RFCs.
7. Improve documentation

- [Documentation](https://lemaetech.co.uk/http-cookie/http-cookie/Http_cookie/index.html)
- [Github repo](https://github.com/lemaetech/http-cookie)

Enjoy!  
Bikal

---

_[View the full topic](https://discuss.ocaml.org/t/ann-http-cookie-v4-2-0/8441)._
