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

Method CtxLevel

runners/helpers/ValidateRequest.cpp:323–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321struct CtxLevel {
322 enum class Mode { Json, Form, Slice };
323 CtxLevel(nlohmann::json *obj, std::string path) : obj(obj), path(std::move(path)), mode(Mode::Json) {
324 }
325 CtxLevel(MultipartFormDataMap *fields, std::string path) : fields(fields), path(std::move(path)), mode(Mode::Form) {
326 }
327 CtxLevel(MultipartFormDataValue *field, std::string path)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected