| 3 | |
| 4 | |
| 5 | HttpFetcher::HttpFetcher(wchar_t const * host) |
| 6 | { |
| 7 | session_ = WinHttpOpen(L"OsiLoader/1.0", WINHTTP_ACCESS_TYPE_AUTOMATIC_PROXY, |
| 8 | WINHTTP_NO_PROXY_NAME, WINHTTP_NO_PROXY_BYPASS, 0); |
| 9 | if (session_ == NULL) return; |
| 10 | |
| 11 | WinHttpSetTimeouts(session_, 3000, 3000, 3000, 3000); |
| 12 | |
| 13 | httpSession_ = WinHttpConnect(session_, host, INTERNET_DEFAULT_HTTPS_PORT, 0); |
| 14 | if (httpSession_ == NULL) return; |
| 15 | } |
| 16 | |
| 17 | HttpFetcher::~HttpFetcher() |
| 18 | { |
nothing calls this directly
no outgoing calls
no test coverage detected