aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/default_h.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-10-21 13:12:36 +0100
committerLoïc Hoguin <[email protected]>2017-10-21 13:12:36 +0100
commit2a905e9bda3df9260602fb68e9415a3ad4e0cecb (patch)
treee183293ea515d2d340b84c458324fad710c67601 /test/handlers/default_h.erl
parentc62ce1c63e2801640e36c7a480e9250ec8108d24 (diff)
downloadcowboy-2a905e9bda3df9260602fb68e9415a3ad4e0cecb.tar.gz
cowboy-2a905e9bda3df9260602fb68e9415a3ad4e0cecb.tar.bz2
cowboy-2a905e9bda3df9260602fb68e9415a3ad4e0cecb.zip
Add a metrics test when the handler didn't send anything
Also fix a test group to use h2 instead of HTTP/1.1.
Diffstat (limited to 'test/handlers/default_h.erl')
-rw-r--r--test/handlers/default_h.erl8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/handlers/default_h.erl b/test/handlers/default_h.erl
new file mode 100644
index 0000000..b89c31b
--- /dev/null
+++ b/test/handlers/default_h.erl
@@ -0,0 +1,8 @@
+%% This module does not do anything.
+
+-module(default_h).
+
+-export([init/2]).
+
+init(Req, Opts) ->
+ {ok, Req, Opts}.