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

Method is_cache_control_set

include/proxy/hdrs/HTTP.h:1172–1186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1170 -------------------------------------------------------------------------*/
1171
1172inline bool
1173HTTPHdr::is_cache_control_set(const char *cc_directive_wks)
1174{
1175 ink_assert(valid());
1176 ink_assert(hdrtoken_is_wks(cc_directive_wks));
1177
1178 const HdrTokenHeapPrefix *prefix = hdrtoken_wks_to_prefix(cc_directive_wks);
1179 ink_assert(prefix->wks_token_type == HDRTOKEN_TYPE_CACHE_CONTROL);
1180
1181 uint32_t cc_mask = prefix->wks_type_specific.u.cache_control.cc_mask;
1182 if (get_cooked_cc_mask() & cc_mask)
1183 return (true);
1184 else
1185 return (false);
1186}
1187
1188/*-------------------------------------------------------------------------
1189 -------------------------------------------------------------------------*/

Calls 2

hdrtoken_is_wksFunction · 0.85
hdrtoken_wks_to_prefixFunction · 0.85

Tested by

no test coverage detected