MCPcopy Create free account
hub / github.com/apache/mesos / serialize

Method serialize

src/tests/scheduler_http_api_tests.cpp:103–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 }
102
103 string serialize(const Call& call, const string& contentType)
104 {
105 if (contentType == APPLICATION_PROTOBUF) {
106 return call.SerializeAsString();
107 }
108
109 return stringify(JSON::protobuf(call));
110 }
111};
112
113

Callers 1

encodeMethod · 0.80

Calls 2

protobufFunction · 0.85
stringifyFunction · 0.50

Tested by

no test coverage detected