MCPcopy Create free account
hub / github.com/Norbyte/ositools / HttpFetcher

Method HttpFetcher

OsiLoader/HttpFetcher.cpp:5–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4
5HttpFetcher::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
17HttpFetcher::~HttpFetcher()
18{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected