mitm-core / RequestLifecycle
Type Alias: RequestLifecycle
RequestLifecycle =
object
Defined in: src/core/scope/types.ts:161
Tracks request lifecycle metadata and controls request-pipeline execution.
Includes the hijack flag, timing information, and internal pipeline execution state.
Properties
isHijacked
isHijacked:
boolean
Defined in: src/core/scope/types.ts:170
Indicates whether the request has been taken over by a handler and should no longer follow the normal pipeline path.
Remarks
The effect of this flag depends on how the pipeline and handlers interpret it.
timestamps
timestamps:
object
Defined in: src/core/scope/types.ts:173
Timing measurements collected during request processing.
duration?
optionalduration?:number
Total request duration, when calculated.
receivedAt
receivedAt:
number
Timestamp recorded when the request is received.
respondedAt?
optionalrespondedAt?:number
Timestamp recorded when the response is completed, if available.
upstreamReceivedAt?
optionalupstreamReceivedAt?:number
Timestamp recorded when the upstream response is received, if available.
upstreamSentAt?
optionalupstreamSentAt?:number
Timestamp recorded when the request is sent upstream, if available.
