From 4a30198f9068cc989616c8088e4b890bc1de259d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 4 Sep 2013 19:24:54 +0200 Subject: Make cowlib a proper dependency Start moving a few functions from Cowboy into cowlib. --- examples/basic_auth/src/basic_auth.erl | 1 + examples/chunked_hello_world/src/chunked_hello_world.erl | 1 + examples/compress_response/src/compress_response.erl | 1 + examples/cookie/src/cookie.erl | 1 + examples/echo_get/src/echo_get.erl | 1 + examples/echo_post/src/echo_post.erl | 1 + examples/error_hook/src/error_hook.erl | 1 + examples/eventsource/src/eventsource.erl | 1 + examples/hello_world/src/hello_world.erl | 1 + examples/markdown_middleware/src/markdown_middleware.erl | 1 + examples/rest_hello_world/src/rest_hello_world.erl | 1 + examples/rest_pastebin/src/rest_pastebin.erl | 1 + examples/rest_stream_response/src/rest_stream_response.erl | 1 + examples/ssl_hello_world/src/ssl_hello_world.erl | 1 + examples/static_world/src/static_world.erl | 1 + examples/web_server/src/web_server.erl | 1 + examples/websocket/src/websocket.erl | 1 + 17 files changed, 17 insertions(+) (limited to 'examples') diff --git a/examples/basic_auth/src/basic_auth.erl b/examples/basic_auth/src/basic_auth.erl index 9294c77..d54c677 100644 --- a/examples/basic_auth/src/basic_auth.erl +++ b/examples/basic_auth/src/basic_auth.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(basic_auth). diff --git a/examples/chunked_hello_world/src/chunked_hello_world.erl b/examples/chunked_hello_world/src/chunked_hello_world.erl index 78c771f..d75511f 100644 --- a/examples/chunked_hello_world/src/chunked_hello_world.erl +++ b/examples/chunked_hello_world/src/chunked_hello_world.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(chunked_hello_world). diff --git a/examples/compress_response/src/compress_response.erl b/examples/compress_response/src/compress_response.erl index ac2636c..c69a14b 100644 --- a/examples/compress_response/src/compress_response.erl +++ b/examples/compress_response/src/compress_response.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(compress_response). diff --git a/examples/cookie/src/cookie.erl b/examples/cookie/src/cookie.erl index 455fcb0..2626b39 100644 --- a/examples/cookie/src/cookie.erl +++ b/examples/cookie/src/cookie.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(cookie). diff --git a/examples/echo_get/src/echo_get.erl b/examples/echo_get/src/echo_get.erl index 6ffff41..9b1307d 100644 --- a/examples/echo_get/src/echo_get.erl +++ b/examples/echo_get/src/echo_get.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(echo_get). diff --git a/examples/echo_post/src/echo_post.erl b/examples/echo_post/src/echo_post.erl index c7c8ce1..1f2a2ea 100644 --- a/examples/echo_post/src/echo_post.erl +++ b/examples/echo_post/src/echo_post.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(echo_post). diff --git a/examples/error_hook/src/error_hook.erl b/examples/error_hook/src/error_hook.erl index 3543590..2cfd5cf 100644 --- a/examples/error_hook/src/error_hook.erl +++ b/examples/error_hook/src/error_hook.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(error_hook). diff --git a/examples/eventsource/src/eventsource.erl b/examples/eventsource/src/eventsource.erl index 6505e62..bb85991 100644 --- a/examples/eventsource/src/eventsource.erl +++ b/examples/eventsource/src/eventsource.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(eventsource). diff --git a/examples/hello_world/src/hello_world.erl b/examples/hello_world/src/hello_world.erl index d62ff4b..5db51bf 100644 --- a/examples/hello_world/src/hello_world.erl +++ b/examples/hello_world/src/hello_world.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(hello_world). diff --git a/examples/markdown_middleware/src/markdown_middleware.erl b/examples/markdown_middleware/src/markdown_middleware.erl index 49c16dc..6e94350 100644 --- a/examples/markdown_middleware/src/markdown_middleware.erl +++ b/examples/markdown_middleware/src/markdown_middleware.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(markdown_middleware). diff --git a/examples/rest_hello_world/src/rest_hello_world.erl b/examples/rest_hello_world/src/rest_hello_world.erl index e2b7463..afc221f 100644 --- a/examples/rest_hello_world/src/rest_hello_world.erl +++ b/examples/rest_hello_world/src/rest_hello_world.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(rest_hello_world). diff --git a/examples/rest_pastebin/src/rest_pastebin.erl b/examples/rest_pastebin/src/rest_pastebin.erl index cf03a71..e5bd1b5 100644 --- a/examples/rest_pastebin/src/rest_pastebin.erl +++ b/examples/rest_pastebin/src/rest_pastebin.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(rest_pastebin). diff --git a/examples/rest_stream_response/src/rest_stream_response.erl b/examples/rest_stream_response/src/rest_stream_response.erl index ef24309..31e9a36 100644 --- a/examples/rest_stream_response/src/rest_stream_response.erl +++ b/examples/rest_stream_response/src/rest_stream_response.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(rest_stream_response). diff --git a/examples/ssl_hello_world/src/ssl_hello_world.erl b/examples/ssl_hello_world/src/ssl_hello_world.erl index 1413b7b..83c250e 100644 --- a/examples/ssl_hello_world/src/ssl_hello_world.erl +++ b/examples/ssl_hello_world/src/ssl_hello_world.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(ssl_hello_world). diff --git a/examples/static_world/src/static_world.erl b/examples/static_world/src/static_world.erl index 6425a99..2bed337 100644 --- a/examples/static_world/src/static_world.erl +++ b/examples/static_world/src/static_world.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(static_world). diff --git a/examples/web_server/src/web_server.erl b/examples/web_server/src/web_server.erl index ae75c3a..ac3f1b1 100644 --- a/examples/web_server/src/web_server.erl +++ b/examples/web_server/src/web_server.erl @@ -9,6 +9,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(web_server). diff --git a/examples/websocket/src/websocket.erl b/examples/websocket/src/websocket.erl index da2a91c..23afe13 100644 --- a/examples/websocket/src/websocket.erl +++ b/examples/websocket/src/websocket.erl @@ -7,6 +7,7 @@ start() -> ok = application:start(crypto), + ok = application:start(cowlib), ok = application:start(ranch), ok = application:start(cowboy), ok = application:start(websocket). -- cgit v1.2.3