readPriorityFrame() — netty Function Reference
Architecture documentation for the readPriorityFrame() function in DefaultHttp2FrameReader.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 5f9ef4d8_27b8_2f7d_73a0_e87c372e91c3["readPriorityFrame()"] 3768d640_58c2_34e7_3d69_a4b578e0d11a["DefaultHttp2FrameReader"] 5f9ef4d8_27b8_2f7d_73a0_e87c372e91c3 -->|defined in| 3768d640_58c2_34e7_3d69_a4b578e0d11a e711693c_32ed_ac69_29f1_ce5694750979["processPayloadState()"] e711693c_32ed_ac69_29f1_ce5694750979 -->|calls| 5f9ef4d8_27b8_2f7d_73a0_e87c372e91c3 style 5f9ef4d8_27b8_2f7d_73a0_e87c372e91c3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java lines 491–501
private void readPriorityFrame(ChannelHandlerContext ctx, ByteBuf payload,
Http2FrameListener listener) throws Http2Exception {
long word1 = payload.readUnsignedInt();
boolean exclusive = (word1 & 0x80000000L) != 0;
int streamDependency = (int) (word1 & 0x7FFFFFFFL);
if (streamDependency == streamId) {
throw streamError(streamId, PROTOCOL_ERROR, "A stream cannot depend on itself.");
}
short weight = (short) (payload.readUnsignedByte() + 1);
listener.onPriorityRead(ctx, streamId, streamDependency, weight, exclusive);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does readPriorityFrame() do?
readPriorityFrame() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java.
Where is readPriorityFrame() defined?
readPriorityFrame() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java at line 491.
What calls readPriorityFrame()?
readPriorityFrame() is called by 1 function(s): processPayloadState.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free