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

Function http_hdr_clone

src/proxy/hdrs/HTTP.cc:374–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 -------------------------------------------------------------------------*/
373
374HTTPHdrImpl *
375http_hdr_clone(HTTPHdrImpl *s_hh, HdrHeap *s_heap, HdrHeap *d_heap)
376{
377 HTTPHdrImpl *d_hh;
378
379 // FIX: A future optimization is to copy contiguous objects with
380 // one single memcpy. For this first optimization, we just
381 // copy each object separately.
382
383 d_hh = http_hdr_create(d_heap, s_hh->m_polarity, s_hh->m_version);
384 http_hdr_copy_onto(s_hh, s_heap, d_hh, d_heap, ((s_heap != d_heap) ? true : false));
385 return (d_hh);
386}
387
388/*-------------------------------------------------------------------------
389 -------------------------------------------------------------------------*/

Callers 2

TSHttpHdrCloneFunction · 0.85
copyMethod · 0.85

Calls 2

http_hdr_createFunction · 0.85
http_hdr_copy_ontoFunction · 0.85

Tested by

no test coverage detected