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:
parent
25912dfc05
commit
b5a40256dd
9 changed files with 199 additions and 273 deletions
|
@ -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}}
|
||||
).
|
||||
----
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue