| 1170 | -------------------------------------------------------------------------*/ |
| 1171 | |
| 1172 | inline bool |
| 1173 | HTTPHdr::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 | -------------------------------------------------------------------------*/ |
no test coverage detected