http-date-0.0.1: HTTP Date parser/formatter

Safe HaskellSafe-Infered

Network.HTTP.Date

Contents

Description

Fast parser and formatter for HTTP Date.

Synopsis

Documentation

data HTTPDate Source

Data structure for HTTP Date. This value should be specified with defaultHTTPDate and its field labels.

Instances

defaultHTTPDate :: HTTPDateSource

A default value for HTTPDate.

Utility functions

parseHTTPDate :: ByteString -> Maybe HTTPDateSource

Parsing HTTP Date. Currently only RFC1123 style is supported.

formatHTTPDate :: HTTPDate -> ByteStringSource

Generating HTTP Date in RFC1123 style.