Enum scrupy::downloader_middleware::MiddleWareExceptionResult
[−]
[src]
pub enum MiddleWareExceptionResult { Continue, Request(Request), Response(Response), }
Indicates what to do after the DownloadError
has been processed.
Variants
Continue
Scrupy will continue processing this exception, executing any other process_exception() methods of installed middleware, until no middleware is left and the default exception handling kicks in.
Request(Request)
The process_response() method chain of installed middleware is started, and Scrupy won’t bother calling any other process_exception() methods of middleware.
Response(Response)
The returned request is rescheduled to be downloaded in the future. This stops the execution of process_exception() methods of the middleware the same as returning a response would.