From 131f8ed4e5994c0a3091673c3973872e454918ef Mon Sep 17 00:00:00 2001 From: Benoit Chesneau Date: Thu, 19 Feb 2026 00:42:47 +0100 Subject: [PATCH] Add cow_qpack:init/0 convenience function Defaults to encoder role for simpler initialization. --- src/cow_qpack.erl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cow_qpack.erl b/src/cow_qpack.erl index 98089ae..5b23047 100644 --- a/src/cow_qpack.erl +++ b/src/cow_qpack.erl @@ -15,6 +15,7 @@ -module(cow_qpack). -dialyzer(no_improper_lists). +-export([init/0]). -export([init/1]). -export([init/3]). @@ -137,6 +138,11 @@ %% State initialization. +-spec init() -> state(). + +init() -> + init(encoder). + -spec init(decoder | encoder) -> state(). init(Role) ->