mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
6 lines
426 B
Bash
Executable file
6 lines
426 B
Bash
Executable file
#!/bin/sh
|
|
erl -pa ebin deps/*/ebin -s rest_hello_world \
|
|
-eval "io:format(\"Get HTML: curl -i http://localhost:8080~n\")." \
|
|
-eval "io:format(\"Get JSON: curl -i -H \\\"Accept: application/json\\\" http://localhost:8080~n\")." \
|
|
-eval "io:format(\"Get text: curl -i -H \\\"Accept: text/plain\\\" http://localhost:8080~n\")." \
|
|
-eval "io:format(\"Get a 406: curl -i -H \\\"Accept: text/css\\\" http://localhost:8080~n\")."
|