| 218 | } |
| 219 | |
| 220 | Utils::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 | |
| 236 | Utils::StatusWithReason FileSpec::Private::extractQuery(NL::json& node) |
| 237 | { |
nothing calls this directly
no test coverage detected