MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / ckpt_web_get

Function ckpt_web_get

common/script/checkpoint_api.cpp:434–447  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434void ckpt_web_get(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
435{
436 const ScriptArgs args(Parser, Param, NumArgs, "web_get");
437 char** out = args.outStr(0);
438 int* outSize = args.outInt(1);
439 const char* url = args.str(2);
440 *out = nullptr;
441 *outSize = 0;
442
443 Http::Request req;
444 req.url = url;
445
446 ReturnValue->Val->Integer = webResult("web_get", url, Http::perform(req), out, outSize, nullptr);
447}
448
449void ckpt_web_request(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
450{

Callers

nothing calls this directly

Calls 5

webResultFunction · 0.85
performFunction · 0.85
outStrMethod · 0.80
outIntMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected