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

Method copy

include/proxy/hdrs/HTTP.h:724–736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722 -------------------------------------------------------------------------*/
723
724inline void
725HTTPHdr::copy(const HTTPHdr *hdr)
726{
727 ink_assert(hdr->valid());
728
729 if (valid()) {
730 http_hdr_copy_onto(hdr->m_http, hdr->m_heap, m_http, m_heap, (m_heap != hdr->m_heap) ? true : false);
731 } else {
732 m_heap = new_HdrHeap();
733 m_http = http_hdr_clone(hdr->m_http, hdr->m_heap, m_heap);
734 m_mime = m_http->m_fields_impl;
735 }
736}
737
738/*-------------------------------------------------------------------------
739 -------------------------------------------------------------------------*/

Callers 2

request_setMethod · 0.45
response_setMethod · 0.45

Calls 4

http_hdr_copy_ontoFunction · 0.85
new_HdrHeapFunction · 0.85
http_hdr_cloneFunction · 0.85
validMethod · 0.45

Tested by

no test coverage detected