package http-date

  1. Overview
  2. Docs
HTTP Datetime encoder/decoder

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.2.tar.gz
md5=c05dd250cd2bcef94b9dedc0fda6202d
sha512=00cf1c4c6ca9dd95042707fb9b815bdd30532f3d0830a846bbbc46e6fc064a7565484241d8f8c2f517c9b1184492eeb2b8ff3efa6831cfe42e6c00fc69b3e162

doc/CHANGES.html

v0.2 2026-04-13

Breaking changes

  • Replace ocamllex/menhir implementation with a hand-written parser.
  • Remove ptime dependency — the library is now dependency-free (aside from ocaml and dune).
  • New t type: a polymorphic variant (IMF | RFC850 | ASCTIME) tagged by parsed format, carrying dayname * date * time.
  • decode now returns t (was Ptime.t).
  • encode now takes t (was Ptime.t * string).

Added

  • dayname, date, time, and datetime types exposed in the public API.
  • pp pretty-printer for t.
  • Validate date and time values during parsing.
  • Property-based tests with alcobar and AFL fuzz testing infrastructure.

v0.1 2023-01-05

  • Initial release supporting decoding/encoding in IMF, RFC 850 and asctime format.