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

Scrupy will stop calling process_request methods and reschedule the returned 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).

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.