hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject [HttpCore] new async protocol handlers
Date Thu, 08 Sep 2011 22:16:55 GMT
Folks

New async protocol handlers are complete and stable enough to get a feel
of how the new API is shaping up.

Non-blocking, zero-copy file server example

new: 
http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpServer.java
 
old:
http://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.1.x/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpServer.java

Non-blocking client example 

new: 
http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java
old:
http://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.1.x/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpClient.java

Non-blocking reverse proxy example

new: 
http://svn.apache.org/repos/asf/httpcomponents/httpcore/trunk/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java
old:
http://svn.apache.org/repos/asf/httpcomponents/httpcore/branches/4.1.x/httpcore-nio/src/examples/org/apache/http/examples/nio/NHttpReverseProxy.java

The difference in the client and the proxy code is especially
noticeable, even in terms of lines of code necessary it takes to get the
same things done.

Feel free to take a look and let me know what you think.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message