Skip to content

elli-lib/elli_date

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elli_date

Build Status Hex Badge

Elli middleware adding the Date header.

This Elli middleware adds the "Date" header to responses. The current date string is cached in an ETS-table and updated once a second. The impact on performance is very low, if noticeable at all.

According to the HTTP 1.1 specification, the "Date" header in each response is required.

Usage

To use elli_date, just add it to your mods in your elli_middleware Config.

Config = [
          {mods, [
                  {elli_date, []},
                  %% ...,
                 ]}
         ],
elli:start_link([
                 %% ...,
                 {callback, elli_middleware},
                 {callback_args, Config}
                ]).

About

Elli middleware adding the "Date" header

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Erlang 100.0%