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:
parent
faeb37ed80
commit
33461ecdbd
7 changed files with 7 additions and 7 deletions
|
@ -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().
|
||||||
|
|
||||||
|
|
|
@ -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().
|
||||||
|
|
||||||
|
|
|
@ -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().
|
||||||
|
|
||||||
|
|
|
@ -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().
|
||||||
|
|
||||||
|
|
|
@ -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().
|
||||||
|
|
||||||
|
|
|
@ -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().
|
||||||
|
|
||||||
|
|
|
@ -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().
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue