Debian Codegraph @

test/handlers/stream_hello_h.erl

raw
1 %% This module is the fastest way of producing a Hello world!
2
3 -module(stream_hello_h).
4
5 -export([init/3]).
6 -export([terminate/3]).
7
8 init(_, _, State) ->
9 {[
10 {response, 200, #{<<"content-length">> => <<"12">>}, <<"Hello world!">>},
11 stop
12 ], State}.
13
14 terminate(_, _, _) ->
15 ok.