0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Start crypto also in the examples and documentation

This commit is contained in:
Loïc Hoguin 2012-10-11 20:52:29 +02:00
parent 7b3d9943a9
commit 160063497c
7 changed files with 9 additions and 1 deletions

View file

@ -39,7 +39,8 @@ Cowboy does nothing by default.
Cowboy uses Ranch for handling connections, and provides convenience Cowboy uses Ranch for handling connections, and provides convenience
functions to start and stop Ranch listeners. The Ranch application functions to start and stop Ranch listeners. The Ranch application
must always be started before Cowboy. must always be started before Cowboy. The crypto application must
also be started.
The `cowboy:start_http/4` function will handle HTTP connections The `cowboy:start_http/4` function will handle HTTP connections
using the TCP transport. Similarly, `cowboy:start_https/4` will using the TCP transport. Similarly, `cowboy:start_https/4` will
@ -57,6 +58,7 @@ HTTP listener. It redirects all requests to the `my_handler`
module. module.
``` erlang ``` erlang
application:start(crypto),
application:start(ranch), application:start(ranch),
application:start(cowboy), application:start(cowboy),
Dispatch = [ Dispatch = [

View file

@ -8,6 +8,7 @@
%% API. %% API.
start() -> start() ->
ok = application:start(crypto),
ok = application:start(ranch), ok = application:start(ranch),
ok = application:start(cowboy), ok = application:start(cowboy),
ok = application:start(chunked_hello_world). ok = application:start(chunked_hello_world).

View file

@ -8,6 +8,7 @@
%% API. %% API.
start() -> start() ->
ok = application:start(crypto),
ok = application:start(ranch), ok = application:start(ranch),
ok = application:start(cowboy), ok = application:start(cowboy),
ok = application:start(echo_get). ok = application:start(echo_get).

View file

@ -8,6 +8,7 @@
%% API. %% API.
start() -> start() ->
ok = application:start(crypto),
ok = application:start(ranch), ok = application:start(ranch),
ok = application:start(cowboy), ok = application:start(cowboy),
ok = application:start(echo_post). ok = application:start(echo_post).

View file

@ -8,6 +8,7 @@
%% API. %% API.
start() -> start() ->
ok = application:start(crypto),
ok = application:start(ranch), ok = application:start(ranch),
ok = application:start(cowboy), ok = application:start(cowboy),
ok = application:start(hello_world). ok = application:start(hello_world).

View file

@ -8,6 +8,7 @@
%% API. %% API.
start() -> start() ->
ok = application:start(crypto),
ok = application:start(ranch), ok = application:start(ranch),
ok = application:start(cowboy), ok = application:start(cowboy),
ok = application:start(rest_hello_world). ok = application:start(rest_hello_world).

View file

@ -8,6 +8,7 @@
%% API. %% API.
start() -> start() ->
ok = application:start(crypto),
ok = application:start(ranch), ok = application:start(ranch),
ok = application:start(cowboy), ok = application:start(cowboy),
ok = application:start(static). ok = application:start(static).