| 70 | } |
| 71 | |
| 72 | const cripts::string_view |
| 73 | Records::GetSV(const cripts::Context *context) const |
| 74 | { |
| 75 | TSAssert(context->state.txnp); |
| 76 | |
| 77 | switch (_type) { |
| 78 | case TS_RECORDDATATYPE_STRING: { |
| 79 | const char *s = nullptr; |
| 80 | int len = 0; |
| 81 | |
| 82 | if (TSHttpTxnConfigStringGet(context->state.txnp, _key, &s, &len) == TS_SUCCESS) { |
| 83 | return {s, len}; |
| 84 | } |
| 85 | } break; |
| 86 | default: |
| 87 | CFatal("[Records]: Invalid configuration type for GetSV()"); |
| 88 | break; |
| 89 | } |
| 90 | |
| 91 | return {}; |
| 92 | } |
| 93 | |
| 94 | bool |
| 95 | Records::_set(const cripts::Context *context, const ValueType &value) const |
nothing calls this directly
no test coverage detected