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

Method getFile

tests/teststaticcompressed.cpp:109–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109TestEngine::TestResponse TestStaticCompressed::getFile(const QString &path, const Headers &headers)
110{
111 const Headers hdrs = headers.data().empty()
112 ? Headers({{"Accept-Encoding", "gzip, deflate, br, zstd"}})
113 : headers;
114 return m_engine->createRequest("GET", path, {}, hdrs, nullptr);
115}
116
117TestEngine::TestResponse TestStaticCompressed::getForcedFile(const QString &path,
118 const Headers &headers)

Callers

nothing calls this directly

Calls 3

dataMethod · 0.80
createRequestMethod · 0.80
HeadersFunction · 0.50

Tested by

no test coverage detected