0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 04:30:25 +00:00

Merge pull request #359 from unix1/master

Fix examples to follow new env tuple standard
This commit is contained in:
Loïc Hoguin 2013-01-06 04:15:03 -08:00
commit 638d0345d1
7 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{dispatch, Dispatch}
{env, [{dispatch, Dispatch}]}
]),
chunked_hello_world_sup:start_link().

View file

@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{dispatch, Dispatch}
{env, [{dispatch, Dispatch}]}
]),
cookie_sup:start_link().

View file

@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{dispatch, Dispatch}
{env, [{dispatch, Dispatch}]}
]),
echo_get_sup:start_link().

View file

@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{dispatch, Dispatch}
{env, [{dispatch, Dispatch}]}
]),
echo_post_sup:start_link().

View file

@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{dispatch, Dispatch}
{env, [{dispatch, Dispatch}]}
]),
hello_world_sup:start_link().

View file

@ -17,7 +17,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{dispatch, Dispatch}
{env, [{dispatch, Dispatch}]}
]),
rest_hello_world_sup:start_link().

View file

@ -20,7 +20,7 @@ start(_Type, _Args) ->
]}
],
{ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{dispatch, Dispatch}
{env, [{dispatch, Dispatch}]}
]),
static_sup:start_link().