MCPcopy Create free account
hub / github.com/apache/tomcat / encode

Method encode

java/org/apache/coyote/http2/HpackEncoder.java:123–125  ·  view source on GitHub ↗

Encodes the headers into a buffer. @param headers The headers to encode @param target The buffer to which to write the encoded headers @return The state of the encoding process

(MimeHeaders headers, ByteBuffer target)

Source from the content-addressed store, hash-verified

121 * @return The state of the encoding process
122 */
123 State encode(MimeHeaders headers, ByteBuffer target) {
124 return encode(headers, target, true);
125 }
126
127 /**
128 * Encodes the headers into a buffer.

Callers 4

testEncodeMethod · 0.95
testDecodeMethod · 0.95

Calls 15

handleTableSizeChangeMethod · 0.95
findInTableMethod · 0.95
addToDynamicTableMethod · 0.95
encodeIntegerMethod · 0.95
getPositionMethod · 0.95
charAtMethod · 0.80
lengthMethod · 0.80
remainingMethod · 0.80
toStringMethod · 0.65
getNameMethod · 0.65

Tested by 4

testEncodeMethod · 0.76
testDecodeMethod · 0.76