aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/proxied_h.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2020-07-27 17:24:16 +0200
committerLoïc Hoguin <[email protected]>2020-09-21 15:51:56 +0200
commit048224a888b3331796e66dd974c6d75234e09036 (patch)
tree05c8fb099619cd6d8a2cfd57d9dd87fed47686d0 /test/handlers/proxied_h.erl
parent323bd167fd33f322ab8747e398e54a8a36f5b753 (diff)
downloadgun-048224a888b3331796e66dd974c6d75234e09036.tar.gz
gun-048224a888b3331796e66dd974c6d75234e09036.tar.bz2
gun-048224a888b3331796e66dd974c6d75234e09036.zip
Add HTTP/2 CONNECT tests with Cowboy as origin
Diffstat (limited to 'test/handlers/proxied_h.erl')
-rw-r--r--test/handlers/proxied_h.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/handlers/proxied_h.erl b/test/handlers/proxied_h.erl
new file mode 100644
index 0000000..d5d4690
--- /dev/null
+++ b/test/handlers/proxied_h.erl
@@ -0,0 +1,11 @@
+%% Feel free to use, reuse and abuse the code in this file.
+
+-module(proxied_h).
+
+-export([init/2]).
+
+init(Req, State) ->
+ {ok, cowboy_req:reply(200,
+ #{<<"content-type">> => <<"text/plain">>},
+ <<"TODO">>,
+ Req), State}.