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

Method copy

src/proxy/hdrs/HTTP.cc:2028–2051  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2026}
2027
2028void
2029HTTPCacheAlt::copy(HTTPCacheAlt *to_copy)
2030{
2031 m_magic = to_copy->m_magic;
2032 // m_writeable = to_copy->m_writeable;
2033 m_unmarshal_len = to_copy->m_unmarshal_len;
2034 m_id = to_copy->m_id;
2035 m_rid = to_copy->m_rid;
2036 memcpy(&m_object_key[0], &to_copy->m_object_key[0], CRYPTO_HASH_SIZE);
2037 m_object_size[0] = to_copy->m_object_size[0];
2038 m_object_size[1] = to_copy->m_object_size[1];
2039
2040 if (to_copy->m_request_hdr.valid()) {
2041 m_request_hdr.copy(&to_copy->m_request_hdr);
2042 }
2043
2044 if (to_copy->m_response_hdr.valid()) {
2045 m_response_hdr.copy(&to_copy->m_response_hdr);
2046 }
2047
2048 m_request_sent_time = to_copy->m_request_sent_time;
2049 m_response_received_time = to_copy->m_response_received_time;
2050 this->copy_frag_offsets_from(to_copy);
2051}
2052
2053void
2054HTTPCacheAlt::copy_frag_offsets_from(HTTPCacheAlt *src)

Callers 15

copy_header_fieldsMethod · 0.45
set_next_stateMethod · 0.45
redirect_requestMethod · 0.45
StartRemapRequestMethod · 0.45
DecideCacheLookupMethod · 0.45
HandlePushResponseHdrMethod · 0.45
build_requestMethod · 0.45
remap_parse_config_btiFunction · 0.45
Remap_redirectMethod · 0.45

Calls 4

createFunction · 0.85
memcpyFunction · 0.50
validMethod · 0.45

Tested by 4

__create_tsMethod · 0.36
mainFunction · 0.36