/src/mochiweb_app.erl

http://github.com/basho/mochiweb · Erlang · 27 lines · 11 code · 6 blank · 10 comment · 0 complexity · 304a5ce162b8d9cb4cb46a8833f9f246 MD5 · raw file

  1. %% @author Bob Ippolito <bob@mochimedia.com>
  2. %% @copyright 2007 Mochi Media, Inc.
  3. %% @doc Callbacks for the mochiweb application.
  4. -module(mochiweb_app).
  5. -author('bob@mochimedia.com').
  6. -behaviour(application).
  7. -export([start/2,stop/1]).
  8. %% @spec start(_Type, _StartArgs) -> ServerRet
  9. %% @doc application start callback for mochiweb.
  10. start(_Type, _StartArgs) ->
  11. mochiweb_sup:start_link().
  12. %% @spec stop(_State) -> ServerRet
  13. %% @doc application stop callback for mochiweb.
  14. stop(_State) ->
  15. ok.
  16. %%
  17. %% Tests
  18. %%
  19. -include_lib("eunit/include/eunit.hrl").
  20. -ifdef(TEST).
  21. -endif.