Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad Str body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam defaults body For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assert BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad TupleLoad NameLoad NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Return NameLoad Return Call NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assert CompareIsNot NameLoad NameLoad Str If Call NameLoad NameLoad NameLoad body Return NameLoad For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assert Call NameLoad NameLoad TupleLoad NameLoad NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assert BoolOpOr CompareIs NameLoad NameLoad Call NameLoad NameLoad TupleLoad NameLoad NameLoad BinOpMod Str TupleLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad If NameLoad body Return NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A 
Downloader Middleware manager

See documentation in docs/topics/downloader-middleware.rst
 ants.http Request Response ants.utils.middleware MiddlewareManager ants.utils.defer mustbe_deferred ants.utils.conf build_component_list DownloaderMiddlewareManager N/A MiddlewareManager N/A N/A component_name downloader middleware _get_mwlist_from_settings N/A N/A cls settings N/A N/A N/A N/A build_component_list N/A settings N/A DOWNLOADER_MIDDLEWARES_BASE N/A settings N/A DOWNLOADER_MIDDLEWARES N/A classmethod _add_middleware N/A N/A self mw N/A N/A N/A N/A hasattr mw process_request N/A N/A N/A N/A N/A N/A self methods N/A process_request append N/A mw process_request N/A N/A hasattr mw process_response N/A N/A N/A N/A N/A N/A self methods N/A process_response insert 0 N/A mw process_response N/A N/A hasattr mw process_exception N/A N/A N/A N/A N/A N/A self methods N/A process_exception insert 0 N/A mw process_exception N/A download N/A N/A self download_func request spider N/A N/A process_request N/A N/A request N/A N/A N/A method N/A N/A self methods N/A process_request N/A N/A response N/A method request request spider spider N/A N/A N/A response None N/A isinstance response N/A Response Request N/A Middleware %s.process_request must return None, Response or Request, got %s N/A N/A N/A N/A method im_self __class__ __name__ N/A N/A response __class__ __name__ N/A response N/A N/A response N/A N/A download_func request request spider spider N/A process_response N/A N/A response N/A N/A N/A N/A response None Received None in process_response N/A N/A isinstance response Request N/A N/A response N/A method N/A N/A self methods N/A process_response N/A N/A response N/A method request request response response spider spider N/A N/A isinstance response N/A Response Request N/A Middleware %s.process_response must return Response or Request, got %s N/A N/A N/A N/A method im_self __class__ __name__ N/A type response N/A N/A isinstance response Request N/A N/A response N/A response N/A process_exception N/A N/A _failure N/A N/A N/A exception N/A _failure value N/A method N/A N/A self methods N/A process_exception N/A N/A response N/A method request request exception exception spider spider N/A N/A N/A response None N/A isinstance response N/A Response Request N/A Middleware %s.process_exception must return None, Response or Request, got %s N/A N/A N/A N/A method im_self __class__ __name__ N/A type response N/A response N/A N/A response N/A _failure N/A N/A deferred N/A mustbe_deferred process_request request N/A N/A N/A deferred addErrback process_exception N/A N/A N/A deferred addCallback process_response N/A deferred N/A N/A