(context: BasicCrawlingContext)
| 919 | |
| 920 | @crawler.router.handler('two') |
| 921 | async def handler_two(context: BasicCrawlingContext) -> None: |
| 922 | state = await context.use_state({'hello': 'world'}) |
| 923 | state_in_handler_two.update(state) |
| 924 | state['hello'] = 'last_world' |
| 925 | |
| 926 | @crawler.router.handler('three') |
| 927 | async def handler_three(context: BasicCrawlingContext) -> None: |