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.