daypack-dev / timere

OCaml date time handling and reasoning suite
MIT License
68 stars 7 forks source link

Add HTTP date time parsing and printing #65

Closed darrenldl closed 1 year ago

darrenldl commented 1 year ago

Tentative API:

val of_http : string -> ...
val to_rfc5322 : ... -> string
val to_http : ... -> string (* alias to to_rfc5322 *)

of_http should accept all three formats (rfc5322 + 2 obsolete ones mentioned in rfc9110) permissively.

darrenldl commented 1 year ago

Compare against https://github.com/bikallem/http-date in test suite.

darrenldl commented 1 year ago

Mostly addressed by #68

of_http and to_http aliases still under consideration

Comparison to http-date package is still under consideration

darrenldl commented 1 year ago

Added of_http and to_http aliases, may address comparison to http-date package in test suite in future.