import requests


def process_request(url, auth):
    """Perform an http request.

    :param url: full url to query
    :type url: ``str``
    :param auth: username, password credentials
    :type auth: ``tuple`` || ``None``
    :returns: ``dict``
    """
    content = requests.get(url, auth=auth)
    if content.status_code >= 300:
        raise SystemExit(content.content)
    return content.json()