blob: 7e59be692741c3037119edf236e7ce2c73442175 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
%% This module sends a hello world response after a delay.
-module(delay_hello_h).
-export([init/2]).
init(Req, Delay) ->
timer:sleep(Delay),
{ok, cowboy_req:reply(200, #{}, <<"Hello world!">>, Req), Delay}.
|