aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r--src/gun_http2.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 7dd369d..efa7afa 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -16,6 +16,8 @@
-export([check_options/1]).
-export([name/0]).
+-export([opts_name/0]).
+-export([has_keepalive/0]).
-export([init/4]).
-export([switch_transport/3]).
-export([handle/4]).
@@ -97,6 +99,8 @@ do_check_options([Opt|_]) ->
{error, {options, {http2, Opt}}}.
name() -> http2.
+opts_name() -> http2_opts.
+has_keepalive() -> true.
init(Owner, Socket, Transport, Opts0) ->
%% We have different defaults than the protocol in order