From 1f7145eec1ad1582297c929cc0def340b559b7b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20S=C3=B6derqvist?= Date: Tue, 14 May 2024 11:32:13 +0200 Subject: [PATCH] Export types used in the definition of the exported cow_http2:frame() type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With these types exported, a frame() can be decomposed and all parts can be typed using exported types. Signed-off-by: Viktor Söderqvist --- src/cow_http2.erl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cow_http2.erl b/src/cow_http2.erl index 68f3625..c167ad2 100644 --- a/src/cow_http2.erl +++ b/src/cow_http2.erl @@ -43,8 +43,13 @@ -export_type([head_fin/0]). -type exclusive() :: exclusive | shared. +-export_type([exclusive/0]). + -type weight() :: 1..256. +-export_type([weight/0]). + -type settings() :: map(). +-export_type([settings/0]). -type error() :: no_error | protocol_error