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

Function mime_hdr_cooked_stuff_init

src/proxy/hdrs/MIME.cc:1046–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1044}
1045
1046void
1047mime_hdr_cooked_stuff_init(MIMEHdrImpl *mh, MIMEField *changing_field_or_null)
1048{
1049 // to be safe, reinitialize unless you know this call is for other cooked field
1050 if ((changing_field_or_null == nullptr) || (changing_field_or_null->m_wks_idx != MIME_WKSIDX_PRAGMA)) {
1051 mh->m_cooked_stuff.m_cache_control.m_mask = 0;
1052 mh->m_cooked_stuff.m_cache_control.m_secs_max_age = 0;
1053 mh->m_cooked_stuff.m_cache_control.m_secs_s_maxage = 0;
1054 mh->m_cooked_stuff.m_cache_control.m_secs_max_stale = 0;
1055 mh->m_cooked_stuff.m_cache_control.m_secs_min_fresh = 0;
1056 }
1057 if ((changing_field_or_null == nullptr) || (changing_field_or_null->m_wks_idx != MIME_WKSIDX_CACHE_CONTROL)) {
1058 mh->m_cooked_stuff.m_pragma.m_no_cache = false;
1059 }
1060}
1061
1062void
1063mime_hdr_init(MIMEHdrImpl *mh)

Callers 2

mime_hdr_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected