aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/stream_hello_h.erl
blob: e67e2204d0eceaf773c6ec52ea57ab6892a8c4e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
%% This module is the fastest way of producing a Hello world!

-module(stream_hello_h).

-export([init/3]).
-export([terminate/3]).

init(_, _, State) ->
	{[
		{response, 200, #{<<"content-length">> => <<"12">>}, <<"Hello world!">>},
		stop
	], State}.

terminate(_, _, _) ->
	ok.