coupergateway / couper

Couper is a lightweight API gateway designed to support developers in building and operating API-driven Web projects
https://couper.io
MIT License
85 stars 15 forks source link

HCL function `parse_date()` #690

Open johakoch opened 1 year ago

johakoch commented 1 year ago

Provide a parse_date() function.

Example:

    add_response_headers = {
      # parse_date/date_parse
      Cache-Control = "max-age=${parse_date("%a, %e %b %Y %T %Z", backend_responses.default.headers.expires) - unixtime()}" # C
    }