mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Fix an error in the guide introduction
Reported by Joe Armstrong.
This commit is contained in:
parent
dee7a8d3e1
commit
b448939282
1 changed files with 2 additions and 2 deletions
|
@ -86,10 +86,10 @@ The dispatch list is explained in greater details in the Routing section
|
||||||
of the guide.
|
of the guide.
|
||||||
|
|
||||||
``` erlang
|
``` erlang
|
||||||
Dispatch = [
|
Dispatch = cowboy_router:compile([
|
||||||
%% {URIHost, list({URIPath, Handler, Opts})}
|
%% {URIHost, list({URIPath, Handler, Opts})}
|
||||||
{'_', [{'_', my_handler, []}]}
|
{'_', [{'_', my_handler, []}]}
|
||||||
],
|
]),
|
||||||
%% Name, NbAcceptors, TransOpts, ProtoOpts
|
%% Name, NbAcceptors, TransOpts, ProtoOpts
|
||||||
cowboy:start_http(my_http_listener, 100,
|
cowboy:start_http(my_http_listener, 100,
|
||||||
[{port, 8080}],
|
[{port, 8080}],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue