1
2
3
4
5
6
7
8
9
-module(test).

-compile([debug_info]).
-export([start/0,start/1]).

start() -> start(9999).

start(Port) ->
    mochiweb_http:start([{port, Port}, {loop, fun(x) -> x end}]).