Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
High Performance HTTP Proxy
PHP HTML Java Other
Failed to load latest commit information.
performance Performance readme update
src Added 500ms delay after HTTP GET to allow HTTP filters to be invoked.
.gitignore Ignore files produced during perf test
.travis.yml Adding travis.yml
COPYRIGHT.txt Initial implementation of LittleShoot proxy based on Netty core
LICENSE.txt Initial implementation of LittleShoot proxy based on Netty core Initial rough pass at Netty 4 upgrade Some method renaming for consistency. Initial rough pass at Netty 4 upgrade
buildSite.bash Build site script
chain_proxy_keystore_1.jks Refactored connection flow for better composition and readability
deploy.bash Fixed some SSL handshaking and connection reuse issues Removed vestigates of MITM stuff
littleproxy_cert #149 ProxyToServerConnection now removes itself as handler from the o…
littleproxy_keystore.jks Merging in SSL intercept, test port changes
perf.bash Changed path
perfServer.bash Adding performance testing infrastructure
pginstrument-0.1.0-shadow.jar #1109 Added automatic generation of with tests
pom.xml Updated pom to exclude hamcrest 1.x dependencies in favor of hamcrest 2
run.bash Fixed issue with large file uploads
tagRelease.bash Tweaked to check args

Build Status

LittleProxy is a high performance HTTP proxy written in Java atop Trustin Lee's excellent Netty event-based networking library. It's quite stable, performs well, and is easy to integrate into your projects.

One option is to clone LittleProxy and run it from the command line. This is as simple as:

$ git clone git://
$ cd LittleProxy
$ ./run.bash

You can embed LittleProxy in your own projects through maven with the following:


Once you've included LittleProxy, you can start the server with the following:

HttpProxyServer server =

There are lots of filters and such you can also add to LittleProxy. You can add request and response filters using an HttpFiltersSource(Adapter), for example:

HttpProxyServer server =
        .withFiltersSource(new HttpFiltersSourceAdapter() {
            public HttpFilters filterRequest(HttpRequest originalRequest, ChannelHandlerContext ctx) {
               return new HttpFiltersAdapter(originalRequest) {
                  public HttpResponse clientToProxyRequest(HttpObject httpObject) {
                      // TODO: implement your filtering here
                      return null;

                  public HttpResponse proxyToServerRequest(HttpObject httpObject) {
                      // TODO: implement your filtering here
                      return null;

                  public HttpObject serverToProxyResponse(HttpObject httpObject) {
                      // TODO: implement your filtering here
                      return httpObject;

                  public HttpObject proxyToClientResponse(HttpObject httpObject) {
                      // TODO: implement your filtering here
                      return httpObject;

If you want to create additional proxy servers with similar configuration but listening on different ports, you can clone an existing server. The cloned servers will share event loops to reduce resource usage and when one clone is stopped, all are stopped.


For examples of configuring logging, see src/test/resources/log4j.xml.

If you have questions, please visit our Google Group here:!forum/littleproxy

Project reports, including the API Documentation, can be found here:

Benchmarking instructions and results can be found here.


Many thanks to The Measurement Factory for the use of Co-Advisor for HTTP standards compliance testing.

Release History

1.0.0-beta4 - Bug fixes

1.0.0-beta3 - Bug fixes

1.0.0-beta2 - Basic Man in the Middle Support

This release added back basic support for Man in the Middle (MITM) proxying. The current MITM support is intended primarily for projects that wish to use LittleProxy to facilitate HTTP related testing. See MitmProxyTest for an example of how to use the updated MITM support.

Certificate impersonation would need to be implemented in order for LittleProxy to work well in an end-user facing capacity. This release includes the hooks for doing so, through the new MitmManager abstraction.

Fixed Issues

1.0.0-beta1 - Netty 4 Upgrade

This release switched LittleProxy from Netty 3 to Netty 4. As part of the upgrade, LittleProxy's public API and internal implementation were significantly refactored for maintainability and API stability.

Support for Man in the Middle proxying was temporarily dropped in this release.

Something went wrong with that request. Please try again.