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

Fix examples to follow new env tuple standard

This brings examples in line with the recent Middleware change.
This commit is contained in:
Unix1 2013-01-05 19:19:14 -08:00
parent faeb37ed80
commit 33461ecdbd
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}], [ {ok, _} = cowboy:start_http(http, 100, [{port, 8080}], [
{dispatch, Dispatch} {env, [{dispatch, Dispatch}]}
]), ]),
chunked_hello_world_sup:start_link(). chunked_hello_world_sup:start_link().

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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