@staticmethod
def _send_response(response):
    if isinstance(response, str):
        return (200, {}, response.encode('utf-8'))
    else:
        (status_code, headers, response_content) = response
        if (not isinstance(response_content, bytes)):
            response_content = response_content.encode('utf-8')
        return (status_code, headers, response_content)
@staticmethod
def _send_response(response):
    if isinstance(response, str):
        return (200, {}, response.encode('utf-8'))
    else:
        (status_code, headers, response_content) = response
        if (not isinstance(response_content, bytes)):
            response_content = response_content.encode('utf-8')
        return (status_code, headers, response_content)