hpack icon indicating copy to clipboard operation
hpack copied to clipboard

Header Compression for HTTP/2

Results 13 hpack issues
Sort by recently updated
recently updated
newest added

Even though header names are required to be strings the interface emits them as byte[] which requires the recipient to decode and copy to create the equivalent string every time...

**Describe the bug** I am trying to encode several headers and my implementation is as follows. ```java ByteArrayOutputStream out = new ByteArrayOutputStream(); Encoder encoder = new Encoder(maxHeaderTableSize); encoder.encodeHeader(out, "content-type".getBytes(), "application/json".getBytes(),...

**Describe the bug** https://github.com/twitter/hpack/blob/713612a439aa8f9b22cf4840054f9e7b3a787c02/hpack/src/main/java/com/twitter/hpack/Decoder.java#L92 https://docs.oracle.com/javase/8/docs/api/java/io/InputStream.html#available-- If you read the javadoc for `available()`, you will see that it is only an estimate of the number of bytes that can be read...