MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / responseHasKnownLength

Method responseHasKnownLength

Libraries/Http/HttpAsyncClient.cpp:702–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

700bool HttpAsyncClient::responseMustNotHaveBody() const
701{
702 if (currentRequest != nullptr and currentRequest->getMethod() == HttpParser::Method::HttpHEAD)
703 {
704 return true;
705 }
706 if (response.getParser().statusCode == 204 or response.getParser().statusCode == 304)
707 {
708 return true;
709 }

Callers

nothing calls this directly

Calls 1

getHeaderMethod · 0.45

Tested by

no test coverage detected