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

Function http2_parse_priority_parameter

src/proxy/http2/HTTP2.cc:307–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307bool
308http2_parse_priority_parameter(IOVec iov, Http2Priority &priority)
309{
310 byte_pointer ptr(iov.iov_base);
311 byte_addressable_value<uint32_t> dependency;
312
313 memcpy_and_advance(dependency.bytes, ptr);
314
315 priority.exclusive_flag = dependency.bytes[0] & 0x80;
316
317 dependency.bytes[0] &= 0x7f; // Clear the highest bit for exclusive flag
318 priority.stream_dependency = ntohl(dependency.value);
319
320 memcpy_and_advance(priority.weight, ptr);
321
322 return true;
323}
324
325bool
326http2_parse_rst_stream(IOVec iov, Http2RstStream &rst_stream)

Callers 2

rcv_headers_frameMethod · 0.85
rcv_priority_frameMethod · 0.85

Calls 1

memcpy_and_advanceFunction · 0.85

Tested by

no test coverage detected