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

Class HeaderSink

java/org/apache/coyote/http2/HeaderSink.java:25–43  ·  view source on GitHub ↗

Purpose of this class is to silently swallow any headers. It is used once the connection close process has started if headers for new streams are received.

Source from the content-addressed store, hash-verified

23 * headers for new streams are received.
24 */
25class HeaderSink implements HeaderEmitter {
26
27 @Override
28 public void emitHeader(String name, String value) {
29 // NO-OP
30 }
31
32 @Override
33 public void validateHeaders() throws StreamException {
34 // NO-OP
35 }
36
37 @Override
38 public void setHeaderException(StreamException streamException) {
39 // NO-OP
40 // The connection is already closing so no need to process additional
41 // errors
42 }
43}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected