MCPcopy Create free account
hub / github.com/PDAL/PDAL / extractHeaders

Method extractHeaders

pdal/FileSpec.cpp:220–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220Utils::StatusWithReason FileSpec::Private::extractHeaders(NL::json& node)
221{
222 auto it = node.find("headers");
223 if (it == node.end())
224 return true;
225 NL::json& val = *it;
226 if (!val.is_null())
227 {
228 if (!extractStringMap(val, m_headers))
229 return { -1, "'filename' sub-argument 'headers' must be an object of "
230 "string key-value pairs." };
231 }
232 node.erase(it);
233 return true;
234}
235
236Utils::StatusWithReason FileSpec::Private::extractQuery(NL::json& node)
237{

Callers

nothing calls this directly

Calls 4

extractStringMapFunction · 0.85
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected