# coding=utf-8

class TestDownloaderMiddleware1:
    '''实现下载器中间件'''

    def process_request(self, request):
        '''
        处理请求
        :param request:请求对象
        :return: 请求想
        '''
        # print("TestDownloaderMiddleware1 -- process_request")
        return request

    def process_response(self, response):
        '''
        处理响应
        :param response:响应对象
        :return: 响应对象
        '''
        # print("TestDownloaderMiddleware1 -- process_response")
        return response


class TestDownloaderMiddleware2:
    '''实现下载器中间件'''

    def process_request(self, request):
        '''
        处理请求
        :param request:请求对象
        :return: 请求想
        '''
        # print("TestDownloaderMiddleware2 -- process_request")
        return request

    def process_response(self, response):
        '''
        处理响应
        :param response:响应对象
        :return: 响应对象
        '''
        # print("TestDownloaderMiddleware2 -- process_response")
        return response
