aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/stream_hello_h.erl
diff options
context:
space:
mode:
Diffstat (limited to 'test/handlers/stream_hello_h.erl')
-rw-r--r--test/handlers/stream_hello_h.erl15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/handlers/stream_hello_h.erl b/test/handlers/stream_hello_h.erl
new file mode 100644
index 0000000..e67e220
--- /dev/null
+++ b/test/handlers/stream_hello_h.erl
@@ -0,0 +1,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.