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

Method copy_shallow

include/proxy/hdrs/HTTP.h:741–752  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739 -------------------------------------------------------------------------*/
740
741inline void
742HTTPHdr::copy_shallow(const HTTPHdr *hdr)
743{
744 ink_assert(hdr->valid());
745
746 m_heap = hdr->m_heap;
747 m_http = hdr->m_http;
748 m_mime = hdr->m_mime;
749
750 if (hdr->type_get() == HTTP_TYPE_REQUEST && m_url_cached.valid())
751 m_url_cached.copy_shallow(&hdr->m_url_cached);
752}
753
754/*-------------------------------------------------------------------------
755 -------------------------------------------------------------------------*/

Callers 2

request_getMethod · 0.45
response_getMethod · 0.45

Calls 2

type_getMethod · 0.80
validMethod · 0.45

Tested by

no test coverage detected