App features
App features are settings that slightly modify app behavior.
List of app features
Currently, the following features are available:
500-on-error— send500 Internal Server Errorstatus if an error occurred during request handlingauto-head-handler— automatically respond to HEAD requests with same headers, but without body and204 No Contentstatus codex-powered-by— set response headerX-Powered-By: Lunatic
Enabling and disabling app features
You can enable, disable and toggle different app features with
LunaticServer methods
app.enable(),
app.disable() and
app.toggle() respectively.
import { LunaticServer } from '@shelepuginivan/lunatic'
const app = new LunaticServer()
app.disable('x-powered-by')