MCPcopy Create free account
hub / github.com/apache/trafficserver / GetSV

Method GetSV

src/cripts/Configs.cc:72–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72const cripts::string_view
73Records::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
94bool
95Records::_set(const cripts::Context *context, const ValueType &value) const

Callers

nothing calls this directly

Calls 1

TSHttpTxnConfigStringGetFunction · 0.85

Tested by

no test coverage detected