MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / CreateRequestAsync

Method CreateRequestAsync

Sources/Shared/IO/WebRequest.cpp:2397–2408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2395 }
2396
2397 WebRequestImplPtr WebSessionWinHTTP::CreateRequestAsync(WebSessionAsync& session, StringView url, Function<void(WebRequestEvent&)>&& callback, std::int32_t id)
2398 {
2399 DEATH_ASSERT(IsAsync(), "Cannot be called in synchronous sessions", {});
2400
2401 if (_handle == NULL) {
2402 if (!Open()) {
2403 return {};
2404 }
2405 }
2406
2407 return WebRequestImplPtr(new WebRequestWinHTTP(session, *this, url, Death::move(callback), id));
2408 }
2409
2410 bool WebSessionWinHTTP::SetProxy(const WebProxy& proxy)
2411 {

Callers 1

CreateRequestMethod · 0.80

Calls 1

DEATH_ASSERTFunction · 0.85

Tested by

no test coverage detected