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

Partial update of the user guide

I will do more breaking changes before documenting more.
This commit is contained in:
Loïc Hoguin 2016-05-24 14:50:27 +02:00
parent 25912dfc05
commit b5a40256dd
9 changed files with 199 additions and 273 deletions

View file

@ -203,9 +203,9 @@ Dispatch = cowboy_router:compile([
{'_', [{'_', my_handler, []}]}
]),
%% Name, NbAcceptors, TransOpts, ProtoOpts
cowboy:start_http(my_http_listener, 100,
cowboy:start_clear(my_http_listener, 100,
[{port, 8080}],
[{env, [{dispatch, Dispatch}]}]
#{env => #{dispatch => Dispatch}}
).
----