MCPcopy Index your code
hub / github.com/apache/tomcat / onHeadersComplete

Method onHeadersComplete

java/org/apache/coyote/http2/Http2Parser.java:664–681  ·  view source on GitHub ↗
(int streamId)

Source from the content-addressed store, hash-verified

662
663
664 protected void onHeadersComplete(int streamId) throws Http2Exception {
665 // Any left over data is a compression error
666 if (headerReadBuffer.position() > 0) {
667 throw new ConnectionException(sm.getString("http2Parser.processFrameHeaders.decodingDataLeft"),
668 Http2Error.COMPRESSION_ERROR);
669 }
670
671 synchronized (output) {
672 output.headersEnd(streamId, headersEndStream);
673
674 if (headersEndStream) {
675 headersEndStream = false;
676 }
677 }
678
679 // We know from test above that buffer is empty so no need to force it to be cleared
680 afterHeadersCompleteCleanUp(false);
681 }
682
683
684 protected void afterHeadersCompleteCleanUp(boolean forceClear) {

Callers 2

readHeadersFrameMethod · 0.95
readContinuationFrameMethod · 0.95

Calls 4

positionMethod · 0.80
getStringMethod · 0.65
headersEndMethod · 0.65

Tested by

no test coverage detected