http_init_shutdown.erl 258 B

12345678910
  1. %% Feel free to use, reuse and abuse the code in this file.
  2. -module(http_init_shutdown).
  3. -export([init/2]).
  4. init(Req, _) ->
  5. Req2 = cowboy_req:reply(<<"666 Init Shutdown Testing">>,
  6. [{<<"connection">>, <<"close">>}], Req),
  7. {shutdown, Req2, undefined}.