ContextMiddleware <TCrawlingContext, TCrawlingContextExtension>
Index
Properties
action
The main middleware function that enhances the context
Type declaration
Parameters
context: TCrawlingContext
Returns Awaitable<TCrawlingContextExtension>
optionalcleanup
Optional cleanup function called after the consumer finishes or fails
Type declaration
Parameters
context: TCrawlingContext & TCrawlingContextExtension
optionalerror: unknown
Returns Awaitable<void>
Represents a middleware step in the context pipeline.