ecluse:ecluse-core
Safe HaskellNone
LanguageGHC2021

Ecluse.Core.Text.HttpDate

Description

HTTP timestamps for provenance and response retry hints.

Synopsis

Documentation

parseHttpDate :: Text -> Maybe UTCTime Source #

Read the provenance date format, retaining its timezone and whitespace acceptance.

parseHttpDateAt :: UTCTime -> Text -> Maybe UTCTime Source #

Read all RFC 9110 HTTP-date forms, resolving two-digit years against the supplied current time.