RRick Markinsfeat(status): Custom status response (#192)
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(error): custom message (#81) BREAKING CHANGE ``` // change from const terminus = require('@godaddy/terminus') terminus(server, options) // change to: const {createTerminus} = require('@godaddy/terminus') createTerminus(server, options) ``` | 7 年前 | |
feat(shutdown): sendFailuresDuringShutdown flag (#172) Adds new boolean flag, `sendFailuresDuringShutdown`. If set to `false`, health check will continue checking and responding while shutting down, instead of sending 503s once it receives a signal. Defaults to `true`, maintaining current behavior as the default. Fixes #112 | 5 年前 | |
feat(error): custom message (#81) BREAKING CHANGE ``` // change from const terminus = require('@godaddy/terminus') terminus(server, options) // change to: const {createTerminus} = require('@godaddy/terminus') createTerminus(server, options) ``` | 7 年前 | |
feat(onSendFailureDuringShutdown): enable to run an operation before sending the failure message | 7 年前 | |
feat(onSendFailureDuringShutdown): enable to run an operation before sending the failure message | 7 年前 | |
feat(error): custom message (#81) BREAKING CHANGE ``` // change from const terminus = require('@godaddy/terminus') terminus(server, options) // change to: const {createTerminus} = require('@godaddy/terminus') createTerminus(server, options) ``` | 7 年前 | |
feat(error): custom message (#81) BREAKING CHANGE ``` // change from const terminus = require('@godaddy/terminus') terminus(server, options) // change to: const {createTerminus} = require('@godaddy/terminus') createTerminus(server, options) ``` | 7 年前 | |
feat(error): custom message (#81) BREAKING CHANGE ``` // change from const terminus = require('@godaddy/terminus') terminus(server, options) // change to: const {createTerminus} = require('@godaddy/terminus') createTerminus(server, options) ``` | 7 年前 | |
feat(error): custom message (#81) BREAKING CHANGE ``` // change from const terminus = require('@godaddy/terminus') terminus(server, options) // change to: const {createTerminus} = require('@godaddy/terminus') createTerminus(server, options) ``` | 7 年前 | |
feat(error): custom message (#81) BREAKING CHANGE ``` // change from const terminus = require('@godaddy/terminus') terminus(server, options) // change to: const {createTerminus} = require('@godaddy/terminus') createTerminus(server, options) ``` | 7 年前 | |
feat(status): Custom status response (#192) * Added statusOkResponse to configuration The new configuration property: statusOkResponse will allow to globally configure the HTTP response body, used to respond with on a successful healthcheck. * Memoize the value of statusOkResponse When no healthtchecks were defined, the value of statusOkResponse would be returned as is. Therefore, memoizing its string representation would boost performance. * Added statusErrorResponse to configuration The new configuration property: statusErrorResponse will allow to globally configure the HTTP response body, used to respond with on an unsuccessful healthcheck. An unsuccessful healthcheck may override the global statusErrorResponse property by setting the statusResponse property on the Error object. * Incorporated use of headers | 3 年前 | |
feat(status): Custom status response (#192) * Added statusOkResponse to configuration The new configuration property: statusOkResponse will allow to globally configure the HTTP response body, used to respond with on a successful healthcheck. * Memoize the value of statusOkResponse When no healthtchecks were defined, the value of statusOkResponse would be returned as is. Therefore, memoizing its string representation would boost performance. * Added statusErrorResponse to configuration The new configuration property: statusErrorResponse will allow to globally configure the HTTP response body, used to respond with on an unsuccessful healthcheck. An unsuccessful healthcheck may override the global statusErrorResponse property by setting the statusResponse property on the Error object. * Incorporated use of headers | 3 年前 | |
feat(error): custom message (#81) BREAKING CHANGE ``` // change from const terminus = require('@godaddy/terminus') terminus(server, options) // change to: const {createTerminus} = require('@godaddy/terminus') createTerminus(server, options) ``` | 7 年前 | |
feat(healthcheck): expose state to health checks (#185) | 5 年前 | |
feat(error): custom message (#81) BREAKING CHANGE ``` // change from const terminus = require('@godaddy/terminus') terminus(server, options) // change to: const {createTerminus} = require('@godaddy/terminus') createTerminus(server, options) ``` | 7 年前 | |
feat(error): custom message (#81) BREAKING CHANGE ``` // change from const terminus = require('@godaddy/terminus') terminus(server, options) // change to: const {createTerminus} = require('@godaddy/terminus') createTerminus(server, options) ``` | 7 年前 | |
feat(shutdown): Adds option to exit(o) instead of resending the uncatched signal that was received (#212) | 4 年前 |