ruby:验证https网址

时间:2015-06-07 15:50:37

标签: ruby url

实际上我正在使用那个来验证https网址:

void ShowSelectUI() {
    uint maxNumToDisplay = 5;
    bool allowCreateNew = true;
    bool allowDelete = true;

    // I will need to call this function first
    // This will display a dialog to the player
    // The player will need to create a new save manually afterwards
    ISavedGameClient savedGameClient = PlayGamesPlatform.Instance.SavedGame;
    savedGameClient.ShowSelectSavedGameUI("Select saved game",
                                          maxNumToDisplay,
                                          allowCreateNew,
                                          allowDelete,
                                          OnSavedGameSelected);
}


public void OnSavedGameSelected (SelectUIStatus status, ISavedGameMetadata game) {
    // And then from the callback function I get the meta data
    // (ISavedGameMetadata game)

    if (status == SelectUIStatus.SavedGameSelected) {
        // handle selected game save
    } else {
        // handle cancel or error
    }
}

是否存在针对https网址的类似解决方案?

1 个答案:

答案 0 :(得分:2)

只需传递use_ssl选项即可。详情为here