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

Method WebResponseWinHTTP

Sources/Shared/IO/WebRequest.cpp:2216–2223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2214 }
2215
2216 WebResponseWinHTTP::WebResponseWinHTTP(WebRequestWinHTTP& request)
2217 : WebResponseImpl(request), _requestHandle(request.GetHandle()), _contentLength(0)
2218 {
2219 String contentLengthStr = WinHTTPQueryHeaderString(_requestHandle, WINHTTP_QUERY_CONTENT_LENGTH);
2220 if (!contentLengthStr.empty()) {
2221 _contentLength = strtoll(contentLengthStr.data(), nullptr, 10);
2222 }
2223 }
2224
2225 String WebResponseWinHTTP::GetURL() const
2226 {

Callers

nothing calls this directly

Calls 4

WinHTTPQueryHeaderStringFunction · 0.85
GetHandleMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected