mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Add initial http_perf_SUITE
This commit is contained in:
parent
05d77153a0
commit
2531b26acf
4 changed files with 171 additions and 20 deletions
15
test/handlers/stream_hello_h.erl
Normal file
15
test/handlers/stream_hello_h.erl
Normal file
|
@ -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.
|
Loading…
Add table
Add a link
Reference in a new issue