Enum scrupy::downloader_middleware::MiddleWareResult
[−]
[src]
pub enum MiddleWareResult { FinalRequest(Request), IntermediateRequest(Request), Response(Response), Ignore, }
Indicates what to do after the Request
or Response
has been processed.
Variants
FinalRequest(Request)
Scrupy will stop calling process_request methods and reschedule the returned request.
IntermediateRequest(Request)
Scrupy will continue processing this request, executing all other middlewares until, finally, the appropriate downloader handler is called the request performed (and its response downloaded).
Response(Response)
Scrupy won’t bother calling any other process_request() or process_exception() methods, or the appropriate download function; it’ll return that response. The process_response() methods of installed middleware is always called on every response.
Ignore