proxy rewrite
authorAndy Green <andy@warmcat.com>
Sun, 20 Mar 2016 03:59:53 +0000 (11:59 +0800)
committerAndy Green <andy@warmcat.com>
Sun, 20 Mar 2016 03:59:53 +0000 (11:59 +0800)
commit1e5a9ad2dcccd0eb82bfae5cd3235889d5581d57
tree5871b74424da49d46effbaf72c508cf2ead48378
parent5c8906e93163d314eba9dc42e24cfa419d28a0cb
proxy rewrite

If you enable -DLWS_WITH_HTTP_PROXY=1 at cmake, the test server has a
new URI path http://localhost:7681/proxytest If you visit here, a client
connection to http://example.com:80 is spawned, and the results piped on
to your original connection.

Also with LWS_WITH_HTTP_PROXY enabled at cmake, lws wants to link to an
additional library, "libhubbub".  This allows lws to do html rewriting on the
fly, adjusting proxied urls in a lightweight and fast way.
13 files changed:
CMakeLists.txt
changelog
lib/client-handshake.c
lib/client.c
lib/libwebsockets.c
lib/libwebsockets.h
lib/output.c
lib/private-libwebsockets.h
lib/rewrite.c [new file with mode: 0644]
lib/server.c
lib/service.c
lws_config.h.in
test-server/test-server-http.c