-
- Downloads
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.
Showing
- CMakeLists.txt 18 additions, 0 deletionsCMakeLists.txt
- changelog 8 additions, 3 deletionschangelog
- lib/client-handshake.c 114 additions, 0 deletionslib/client-handshake.c
- lib/client.c 9 additions, 0 deletionslib/client.c
- lib/libwebsockets.c 19 additions, 8 deletionslib/libwebsockets.c
- lib/libwebsockets.h 9 additions, 0 deletionslib/libwebsockets.h
- lib/output.c 0 additions, 1 deletionlib/output.c
- lib/private-libwebsockets.h 38 additions, 2 deletionslib/private-libwebsockets.h
- lib/rewrite.c 47 additions, 0 deletionslib/rewrite.c
- lib/server.c 1 addition, 1 deletionlib/server.c
- lib/service.c 167 additions, 132 deletionslib/service.c
- lws_config.h.in 3 additions, 0 deletionslws_config.h.in
- test-server/test-server-http.c 82 additions, 25 deletionstest-server/test-server-http.c
Loading
Please register or sign in to comment