@morojs/moro


@morojs/moro / HOOK_EVENTS

Variable: HOOK_EVENTS

const HOOK_EVENTS: object

Defined in: src/core/utilities/hooks.ts:10

Type Declaration

ERROR

readonly ERROR: "error" = 'error'

When a request fails at the server error boundary: hooks.before/after('error', ...)

REQUEST

readonly REQUEST: "request" = 'request'

Pre-routing, after body parse: hooks.before/after('request', ...)

RESPONSE

readonly RESPONSE: "response" = 'response'

After the response is flushed: hooks.before/after('response', ...)