MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / getForcedFile

Method getForcedFile

tests/teststaticcompressed.cpp:117–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117TestEngine::TestResponse TestStaticCompressed::getForcedFile(const QString &path,
118 const Headers &headers)
119{
120 const Headers hdrs = headers.data().empty()
121 ? Headers({{"Accept-Encoding", "gzip, deflate, br, zstd"}})
122 : headers;
123 return m_engineDirsOnly->createRequest("GET", path, {}, hdrs, nullptr);
124}
125
126bool TestStaticCompressed::writeTestFile(const QString &name)
127{

Callers

nothing calls this directly

Calls 3

dataMethod · 0.80
createRequestMethod · 0.80
HeadersFunction · 0.50

Tested by

no test coverage detected