package http-cookie

  1. Overview
  2. Docs
HTTP cookie library for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

http-cookie-v4.1.0.tbz
sha256=d8dd3505bee94e38d731cae08b7a33a5be3d8ed625c0c47f657d8784e633be02
sha512=1118980e056bece4ebf6ecf24bd6eaa575c8cda1ae37b921ddb044f30cdc42a77c98cf99763a808b45fbb84a55d4abdd1b41a1def6aa037ee7dd797b17365ac6

CHANGES.md.html

v4.1.0 2021-08-18

  • [Change] of_cookie now validates duplicate cookie keys.

  • [Change] slightly improve error message for of_cookie and of_set_cookie

  • [Fix] Fix IPv6 parsing for H16 values.

v4.0.0 2021-08-16

  • [BREAKING-CHANGE] remove module Same_site. Use same_site type instead.

  • [New] introduce type same_site to replace Same_site module and to better conform to RFC 6265.

  • [New] add of_cookie features an angstrom parser to parse 'Cookie' header value as specified by RFC 6265.

  • [New] add pp, pp_date_time and pp_same_site pretty prints type t, date_time and same_site respectively. Useful for debugging pruposes.

  • [New] add date_time function to create valid date_time value.

  • [BREAKING-CHANGE] make date_time type abstract

  • [BREAKING-CHANGE] to_set_cookie_header_value has been removed. Use to_set_cookie instead.

  • [BREAKING-CHANGE] to_cookie_header_value has been removed. Use to_cookie instead.

  • [BREAKING-CHANGE] of_cookie_header has been removed, Useof_cookie instead.

  • [BREAKING-CHANGE] remove Cookie exception. The library is now exception less, i.e. uses result type to denote error scenarios.

  • [New] add of_set_cookie to parse HTTP Set-Cookie header

  • Add expect tests

v3.1.0 2021-08-11

  • Add update_* functions.

v3.0.0 2020-24-12 UK

  • Backwards incompatible change: remove base-unix dependency. Uses own date_time instead of Unix.tm.

v2.0.0 2020-09-09 UK

  • Rewrite library by removing almost all ppx and external libraries

  • Rename package to http-cookie from cookies.

  • Make the Http_cookie the topmost module.

  • Change code formatting to janestreet

  • Document API, generate docs and host it.

v1.0.1 2020-09-09 UK

  • Add compare function

v1.0.0 2020-08-01 UK

  • First release.

OCaml

Innovation. Community. Security.