verifyPushPromiseFrame() — netty Function Reference
Architecture documentation for the verifyPushPromiseFrame() function in DefaultHttp2FrameReader.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 3123aa5e_afed_9d70_137d_bef37d3aea9a["verifyPushPromiseFrame()"] 3768d640_58c2_34e7_3d69_a4b578e0d11a["DefaultHttp2FrameReader"] 3123aa5e_afed_9d70_137d_bef37d3aea9a -->|defined in| 3768d640_58c2_34e7_3d69_a4b578e0d11a 80aaad85_d41e_97a8_6671_ac352891e88f["verifyFrameState()"] 80aaad85_d41e_97a8_6671_ac352891e88f -->|calls| 3123aa5e_afed_9d70_137d_bef37d3aea9a 069bb3c4_e0d2_3ec9_e70b_ad5573d3a4ad["verifyNotProcessingHeaders()"] 3123aa5e_afed_9d70_137d_bef37d3aea9a -->|calls| 069bb3c4_e0d2_3ec9_e70b_ad5573d3a4ad style 3123aa5e_afed_9d70_137d_bef37d3aea9a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java lines 335–348
private void verifyPushPromiseFrame() throws Http2Exception {
verifyNotProcessingHeaders();
// Subtract the length of the promised stream ID field, to determine the length of the
// rest of the payload (header block fragment + payload).
int minLength = flags.getPaddingPresenceFieldLength() + INT_FIELD_LENGTH;
if (payloadLength < minLength) {
// PUSH_PROMISE frames carry a field_block and thus failure to process them results
// in HPACK corruption and renders the connection unusable.
// See https://datatracker.ietf.org/doc/html/rfc9113#section-4.2 for details.
throw connectionError(FRAME_SIZE_ERROR,
"Frame length %d too small for PUSH_PROMISE frame with stream id %d.", payloadLength, streamId);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does verifyPushPromiseFrame() do?
verifyPushPromiseFrame() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java.
Where is verifyPushPromiseFrame() defined?
verifyPushPromiseFrame() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2FrameReader.java at line 335.
What does verifyPushPromiseFrame() call?
verifyPushPromiseFrame() calls 1 function(s): verifyNotProcessingHeaders.
What calls verifyPushPromiseFrame()?
verifyPushPromiseFrame() is called by 1 function(s): verifyFrameState.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free