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

Function ckpt_http_header_value

common/script/web_api.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void ckpt_http_header_value(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
45{
46 const ScriptArgs args(Parser, Param, NumArgs, "http_header_value");
47 // A NULL header block is what web_request leaves behind on a failed
48 // transfer, so it reads as "no headers" rather than as a script error.
49 const char* headers = args.strOr(0, "");
50 const char* key = args.str(1);
51 ReturnValue->Val->Pointer = strToRet(TransferProto::headerValue(headers, key));
52}

Callers

nothing calls this directly

Calls 4

strToRetFunction · 0.85
headerValueFunction · 0.85
strOrMethod · 0.80
strMethod · 0.80

Tested by

no test coverage detected