Commit Graph

3 Commits

Author SHA1 Message Date
ajbmachon 71df815fcd Clarify spider middleware handling of callback requests
Make explicit that process_spider_output() handles both items and
requests from callbacks before they reach pipelines or scheduler.
2025-12-31 13:23:50 +01:00
ajbmachon 4e175e7930 Add spider middleware start request processing to lifecycle docs
Address reviewer feedback that spider middleware coverage was incomplete.
Changes include:

- Add new "Start request processing" section explaining process_start()
- Update lifecycle overview to include start processing as phase 2
- Update spider middleware section to show both integration points
- Update sequence diagram to show START PHASE and CRAWL PHASE
- Add missing signal mentions (engine_started, spider_opened,
  request_dropped, spider_closed)
2025-12-31 13:20:45 +01:00
ajbmachon acabf82bde Add Request to Response lifecycle documentation
Document the end-to-end flow of requests through Scrapy's internals,
including the engine's orchestration role, scheduling, downloading,
spider callback execution, and item pipeline processing.

This conceptual guide complements the existing architecture overview
by providing a detailed narrative of the request lifecycle.
2025-12-29 15:16:42 +01:00