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

Method getContentLength

Libraries/HttpClient/HttpClient.cpp:1028–1032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026}
1027
1028bool SC::HttpClientResponse::getContentLength(uint64_t& value) const
1029{
1030 StringSpan text;
1031 return getHeader("Content-Length", text) and parseAsciiUint64(text, value);
1032}
1033
1034bool SC::HttpClientResponse::getContentType(StringSpan& value) const { return getHeader("Content-Type", value); }
1035

Callers

nothing calls this directly

Calls 1

parseAsciiUint64Function · 0.85

Tested by

no test coverage detected