MCPcopy Create free account
hub / github.com/Snapchat/Valdi / processResponse

Method processResponse

valdi/src/valdi/runtime/Debugger/DaemonClient.cpp:204–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204void DaemonClient::processResponse(const Value& response) {
205 auto requestId = response.getMapValue("request_id");
206 if (requestId.isNullOrUndefined()) {
207 VALDI_INFO(*_logger, "Missing request id for object: {}", response.toString());
208 return;
209 }
210 auto pendingResponse = getPendingResponse(requestId.toStringBox());
211 if (pendingResponse == nullptr) {
212 VALDI_ERROR(*_logger, "Unable to find pending response for requestId {}", response.getMapValue("request_id"));
213 return;
214 }
215
216 pendingResponse->handler(response);
217}
218
219void DaemonClient::processPayload(const Value& payload) {
220 auto request = payload.getMapValue("request");

Callers

nothing calls this directly

Calls 5

getMapValueMethod · 0.80
toStringMethod · 0.65
isNullOrUndefinedMethod · 0.45
toStringBoxMethod · 0.45
handlerMethod · 0.45

Tested by

no test coverage detected