<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def body_processor(self, chunk):
 """ Process body of response. """


        if self.config_nobody:
            self.curl.grab_callback_interrupted = True
            return 0

        bytes_read = len(chunk)

        self.response_body_bytes_read += bytes_read
        if self.body_file:
            self.body_file.write(chunk)
        else:
            self.response_body_chunks.append(chunk)
        if self.config_body_maxsize is not None:
            if self.response_body_bytes_read > self.config_body_maxsize:
                logger.debug('Response body max size limit reached: %s',
                             self.config_body_maxsize)
                self.curl.grab_callback_interrupted = True
                return 0

        # Returning None implies that all bytes were written
        return None