Taxum / @taxum/core / middleware/trace / DefaultOnResponse
Class: DefaultOnResponse
Defined in: middleware/trace.ts:81
Implements
Constructors
Constructor
new DefaultOnResponse(
level
,includeHeaders
):DefaultOnResponse
Defined in: middleware/trace.ts:85
Parameters
level
LogLevel
= DEFAULT_MESSAGE_LEVEL
includeHeaders
boolean
= false
Returns
DefaultOnResponse
Methods
onResponse()
onResponse(
res
,latency
):void
Defined in: middleware/trace.ts:90
Do the thing.
latency
is the duration in milliseconds since the request was received.
Parameters
res
latency
number
Returns
void
Implementation of
OnResponse.onResponse