BoxLang 🚀 A New JVM Dynamic Language Learn More...

environmentHeader

v1.0.7 Modules

Environment Header

Add ColdBox Environment headers to your app in one module

This module determines the environment your ColdBox app is running in, and creates a response header for you.

This module is ideal for clustered setups, or docker swarms, where the code could be running on one of many environments. This will allow you to know which environment your app is running in.

How does it work?

Response Header

The module sets a header called x-coldbox-env.

When does it run?

The module listens to the onRequestCapture ColdBox interception point.

How does it determine the Environment?

This module looks the ColdBox setting, environment, with getSetting( "environment" )

$ box install environmentHeader

No collaborators yet.
     
  • {{ getFullDate("2018-09-19T23:17:18Z") }}
  • {{ getFullDate("2018-09-20T17:54:11Z") }}
  • 1,956
  • 22,409