Skip to content

Commit bfac74e

Browse files
author
nmittler
committed
Forking Twitter's hpack
Motivation: The twitter hpack project does not have the support that it used to have. See discussion here: netty#4403. Modifications: Created a new module in Netty and copied the latest from twitter hpack master. Result: Netty no longer depends on twitter hpack.
1 parent 33b74e3 commit bfac74e

43 files changed

Lines changed: 4600 additions & 13 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

NOTICE.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,11 @@ non-blocking XML processor, which can be obtained at:
211211
* HOMEPAGE:
212212
* http://wiki.fasterxml.com/AaltoHome
213213

214+
This product contains a modified version of 'HPACK', a Java implementation of
215+
the HTTP/2 HPACK algorithm written by Twitter. It can be obtained at:
216+
217+
* LICENSE:
218+
* license/LICENSE.hpack.txt (Apache License 2.0)
219+
* HOMEPAGE:
220+
* https://github.com/twitter/hpack
221+

codec-http2/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
<artifactId>netty-handler</artifactId>
4040
<version>${project.version}</version>
4141
</dependency>
42-
<dependency>
43-
<groupId>com.twitter</groupId>
44-
<artifactId>hpack</artifactId>
45-
</dependency>
4642
<dependency>
4743
<groupId>com.jcraft</groupId>
4844
<artifactId>jzlib</artifactId>
4945
<optional>true</optional>
5046
</dependency>
47+
<dependency>
48+
<groupId>com.google.code.gson</groupId>
49+
<artifactId>gson</artifactId>
50+
</dependency>
5151
</dependencies>
5252
</project>
5353

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2HeadersDecoder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
package io.netty.handler.codec.http2;
1717

18-
import com.twitter.hpack.Decoder;
19-
import com.twitter.hpack.HeaderListener;
2018
import io.netty.buffer.ByteBuf;
2119
import io.netty.buffer.ByteBufInputStream;
20+
import io.netty.handler.codec.http2.hpack.Decoder;
21+
import io.netty.handler.codec.http2.hpack.HeaderListener;
2222
import io.netty.util.AsciiString;
2323

2424
import java.io.IOException;

codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2HeadersEncoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
package io.netty.handler.codec.http2;
1717

18-
import com.twitter.hpack.Encoder;
1918
import io.netty.buffer.ByteBuf;
2019
import io.netty.buffer.ByteBufOutputStream;
20+
import io.netty.handler.codec.http2.hpack.Encoder;
2121
import io.netty.util.AsciiString;
2222

2323
import java.io.ByteArrayOutputStream;

0 commit comments

Comments
 (0)