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

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.

The process_response() method chain of installed middleware is started, and Scrupy won’t bother calling any other process_exception() methods of middleware.

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.