def parse_raw_headers(raw_headers: str) -> dict:
    """
    Parses the given headers string and returns the corresponding
    headers dictionary. Useful when working with developer tools in
    the browser

    """
    headers = {}
    for header in raw_headers.strip().split('\n'):
        key, value = header.split(': ')
        headers[key] = value
    return headers