0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
cowboy/test/handlers/stream_hello_h.erl
2025-01-24 13:05:45 +01:00

15 lines
281 B
Erlang

%% 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.