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

Method Fetch

OsiLoader/HttpFetcher.cpp:23–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23bool HttpFetcher::Fetch(wchar_t const * path, std::vector<uint8_t> & response)
24{
25 auto request = WinHttpOpenRequest(httpSession_, L"GET", path, NULL,
26 WINHTTP_NO_REFERER, WINHTTP_DEFAULT_ACCEPT_TYPES, WINHTTP_FLAG_SECURE);
27 if (request == NULL) return false;
28
29 bool result = false;
30 if (SendRequest(request, path)) {
31 result = FetchBody(request, response);
32 }
33
34 WinHttpCloseHandle(request);
35 return result;
36}
37
38bool HttpFetcher::FetchETag(wchar_t const * path, std::string & etag)
39{

Callers 1

TryToUpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected