mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-15 04:30:25 +00:00
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.
This commit is contained in:
parent
a013becc66
commit
01f57ad65d
13 changed files with 294 additions and 23 deletions
3
examples/compress_response/start.sh
Executable file
3
examples/compress_response/start.sh
Executable file
|
@ -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\")."
|
Loading…
Add table
Add a link
Reference in a new issue