| 42 | } |
| 43 | |
| 44 | void 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 | } |
nothing calls this directly
no test coverage detected