def json(body, status=200, headers=None):
    return HTTPResponse(json_dumps(body), headers=headers, status=status,
        content_type='application/json')

def text(body, status=200, headers=None):
    return HTTPResponse(body, status=status, headers=headers, content_type=
        'text/plain; charset=utf-8')

def html(body, status=200, headers=None):
    pass
Sanic (asyncio + веб-сервер uvloop) — возвращает пользовательский ответ