MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / is_object

Method is_object

runners/helpers/ValidateRequest.cpp:342–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340 }
341
342 bool is_object() {
343 switch (mode) {
344 case Mode::Form: {
345 return true;
346 }
347 case Mode::Slice:
348 return false;
349 case Mode::Json: {
350 return obj && obj->is_object();
351 }
352 default:
353 return false;
354 }
355 }
356
357 bool has_field(const std::string &name) {
358 switch (mode) {

Callers

nothing calls this directly

Calls 1

is_objectMethod · 0.45

Tested by

no test coverage detected