def METHOD_NAME(cls, params: dict[str, Any]) -> HttpConfig:
    if "url" not in params:
        msg = "`url` key not passed to HttpConfig"
        raise RuntimeError(msg)
    specified_dict = get_only_specified_fields(cls, params)
    specified_dict["auth"] = create_token_provider(specified_dict.get("auth", {}))
    return cls(**specified_dict)