import requests


def fetch_url(url: str) -> str:
    """
    Example of decorators' usage.
    Let's fetch the url and both measure the time of execution and cache results.

    Args:
        url: url to fetch.
    Returns:
        String - Status/encoding/length of request.
    """
    res = requests.get(url)

    ret = f"Status: {res.status_code}\n"
    ret += f"Encoding: {res.encoding}\n"
    ret += f"Content Length: {len(res.text)} bytes\n"

    return ret