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

Method create_headers_frame

src/proxy/http3/Http3Frame.cc:563–572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563Http3HeadersFrameUPtr
564Http3FrameFactory::create_headers_frame(const uint8_t *header_block, size_t header_block_len)
565{
566 ats_unique_buf buf = ats_unique_malloc(header_block_len);
567 memcpy(buf.get(), header_block, header_block_len);
568
569 Http3HeadersFrame *frame = http3HeadersFrameAllocator.alloc();
570 new (frame) Http3HeadersFrame(std::move(buf), header_block_len);
571 return Http3HeadersFrameUPtr(frame, &Http3FrameDeleter::delete_headers_frame);
572}
573
574Http3HeadersFrameUPtr
575Http3FrameFactory::create_headers_frame(IOBufferReader *header_block_reader, size_t header_block_len)

Callers

nothing calls this directly

Calls 5

ats_unique_mallocFunction · 0.85
memcpyFunction · 0.50
getMethod · 0.45
allocMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected