aboutsummaryrefslogtreecommitdiffstats
path: root/examples/compress_response/start.sh
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-01-07 22:42:16 +0100
committerLoïc Hoguin <[email protected]>2013-01-07 22:42:16 +0100
commit01f57ad65d7c75fb455f48e354bb3a328c472ce4 (patch)
treee82833c9b0a1db0f4a82f95244ddb905f4fdaebc /examples/compress_response/start.sh
parenta013becc66b50db038c1f7f3539040b4482bba18 (diff)
downloadcowboy-01f57ad65d7c75fb455f48e354bb3a328c472ce4.tar.gz
cowboy-01f57ad65d7c75fb455f48e354bb3a328c472ce4.tar.bz2
cowboy-01f57ad65d7c75fb455f48e354bb3a328c472ce4.zip
Add optional automatic response body compression
This behavior can be enabled with the `compress` protocol option. See the `compress_response` example for more details. All tests are now ran with and without compression for both HTTP and HTTPS.
Diffstat (limited to 'examples/compress_response/start.sh')
-rwxr-xr-xexamples/compress_response/start.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/compress_response/start.sh b/examples/compress_response/start.sh
new file mode 100755
index 0000000..2e79031
--- /dev/null
+++ b/examples/compress_response/start.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+erl -pa ebin deps/*/ebin -s compress_response \
+ -eval "io:format(\"Point your browser at http://localhost:8080~n\")."