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

Method UrlHandle

src/common/WinInet.cpp:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22CreateGlobalHandle::operator GlobalHandle() const { return {m_agent, m_access_type, m_proxy_string}; }
23
24UrlHandle::UrlHandle(HINTERNET h_internet, const wchar_t *url, std::wstring_view headers, DWORD flags, void *context) {
25 m_handle = InternetOpenUrl(h_internet, url, headers.data(), static_cast<DWORD>(headers.length()), flags, reinterpret_cast<uint64_t>(context));
26 if (!m_handle.get())
27 throw_if_error();
28}
29
30void UrlHandle::set_proxy_username(std::wstring_view username) {
31 InternetSetOption(m_handle.get(), INTERNET_OPTION_PROXY_USERNAME, const_cast<wchar_t *>(username.data()), static_cast<DWORD>(username.length()) + 1);

Callers

nothing calls this directly

Calls 3

dataMethod · 0.80
throw_if_errorFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected