docs: def log_response(handler):
      """
      Acturally, logging response is not a server's responsibility,
      you should use http tools like Chrome Developer Tools to analyse the response.
  
      Although this function and its setting(LOG_RESPONSE) is not recommended to use,
      if you are laze as I was and working in development, nothing could stop you.
      """
      content_type = handler._headers.get('Content-Type', None)
      headers_str = handler._generate_headers()
      block = 'Response Infomations:\n' + headers_str.strip()
  
      if content_type and ('text' in content_type or 'json' in content_type):
          limit = 0
          if 'LOG_RESPONSE_LINE_LIMIT' in settings:
              limit = settings['LOG_RESPONSE_LINE_LIMIT']
  
          def cut(s):
              if limit and len(s) > limit:
                  return [s[:limit]] + cut(s[limit:])
              else:
                  return [s]
  
          body = ''.join(handler._write_buffer)
          lines = []
          for i in body.split('\n'):
              lines += ['| ' + j for j in cut(i)]
          block += '\nBody:\n' + '\n'.join(lines)
      app_log.info(block)