Skip to content

Upgraded to Netty 4 #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1 @@
# Extracted from https://github.com/ulrich/macaron-factory/blob/master/.gitignore
# Ignore all dotfiles...
.*
# except for .gitignore
!.gitignore

# Ignore Play! working directory #
db
eclipse
lib
log
logs
modules
precompiled
project/project
project/target
target
tmp
test-result
server.pid
*.iml
*.eml
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: java
jdk:
- oraclejdk8
- openjdk7
cache:
directories:
- $HOME/.m2

9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ netty-http-pipelining
This library adds http pipelining capability to Netty.

Inserting the HttpPipeliningHandler into a pipeline will cause message events containing an HttpRequest to become transformed
into OrderedUpstreamMessageEvents. The OrderedUpstreamMessageEvent retains context such that a handler further upstream can
compose it and reply with an OrderedDownstreamChannelEvent in any order and in parallel. The HttpPipeliningHandler will
into SequencedHttpRequest. The SequencedHttpRequest retains context such that a handler further upstream can
compose it and reply with an SequencedOutboundMessage in any order and in parallel. The HttpPipeliningHandler will
ensure that http replies are sent back in the order that the http pipelining specification requires i.e. the order in which
replies are returned must correlate to the order in which requests are made.

The chunking of http replies is handled. Limits are also available within the handler to cap the buffering of replies
in order to avoid memory exhaustion.

Please refer to the HttpPipeliningHandlerTest for a comprehensive illustration of usage.
12 changes: 9 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.typesafe.netty</groupId>
<artifactId>netty-http-pipelining</artifactId>
<version>1.1.5-SNAPSHOT</version>
<version>2.0-SNAPSHOT</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>This library provides a handler and some new message types that enable http pipelining in Netty</description>
Expand All @@ -31,6 +31,12 @@
<organization>Typesafe</organization>
<organizationUrl>http://typesafe.com</organizationUrl>
</developer>
<developer>
<name>James Roper</name>
<email>[email protected]</email>
<organization>Typesafe</organization>
<organizationUrl>http://typesafe.com</organizationUrl>
</developer>
</developers>

<organization>
Expand All @@ -41,8 +47,8 @@
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
<version>3.10.1.Final</version>
<artifactId>netty-codec-http</artifactId>
<version>4.0.29.Final</version>
</dependency>
<dependency>
<groupId>junit</groupId>
Expand Down
Loading