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

Method GetSV

src/cripts/Urls.cc:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32cripts::string_view
33Url::Scheme::GetSV()
34{
35 if (_owner && _data.empty()) {
36 const char *value = nullptr;
37 int len = 0;
38
39 _ensure_initialized(_owner);
40 value = TSUrlSchemeGet(_owner->_bufp, _owner->_urlp, &len);
41 _data = cripts::string_view(value, len);
42 }
43
44 return _data;
45}
46
47Url::Scheme
48Url::Scheme::operator=(cripts::string_view scheme)

Callers 3

do_remapFunction · 0.45
do_remapFunction · 0.45
_getComponentMethod · 0.45

Calls 14

TSUrlSchemeGetFunction · 0.85
TSUrlHostGetFunction · 0.85
TSUrlPathGetFunction · 0.85
TSUrlHttpQueryGetFunction · 0.85
pop_backMethod · 0.80
copyFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
reserveMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected