MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / create_url_handle

Method create_url_handle

src/network/GithubFileListProvider.cpp:120–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120WinInet::UrlHandle GitHubFileListProvider::create_url_handle(const Settings::Data &settings_data, const WinInet::GlobalHandle &global_handle,
121 const wchar_t *url) {
122 auto proxy_name = settings_data.proxy_user_name;
123 auto proxy_pwd = settings_data.proxy_password;
124 auto is_anon = settings_data.proxy_is_anonymous;
125 WinInet::UrlHandle url_handle = WinInet::WinInetOpenUrl(global_handle, url);
126 if (!is_anon) {
127 url_handle.set_proxy_username(proxy_name);
128 url_handle.set_proxy_password(proxy_pwd);
129 }
130 return url_handle;
131}
132
133std::optional<std::string> GitHubFileListProvider::download_dictionary_impl(const Concurrency::cancellation_token &token, const std::wstring &aff_filepath,
134 const std::wstring &target_path,

Callers

nothing calls this directly

Calls 3

WinInetOpenUrlClass · 0.85
set_proxy_usernameMethod · 0.80
set_proxy_passwordMethod · 0.80

Tested by

no test coverage detected