import requests


def get_header_contents() -> str:
    """
    Get js_ReaScriptAPI header from GitHub as raw string.

    Returns
    -------
    str
    """
    root_raw = 'https://raw.githubusercontent.com/'
    header = (
        'juliansader/ReaExtensions/master/js_ReaScriptAPI/' +
        'Source%20code/js_ReaScriptAPI_def.h'
    )
    r = requests.get("{}{}".format(root_raw, header))
    return r.content.decode()