We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 133ac59 commit f74e175Copy full SHA for f74e175
src/cow_http2.erl
@@ -42,9 +42,20 @@
42
-type head_fin() :: head_fin | head_nofin.
43
-export_type([head_fin/0]).
44
45
+%% @todo The PRIORITY mechanism in HTTP/2 is de facto deprecated.
46
-type exclusive() :: exclusive | shared.
47
-type weight() :: 1..256.
--type settings() :: map().
48
+
49
+-type settings() :: #{
50
+ enable_connect_protocol => boolean(),
51
+ enable_push => boolean(),
52
+ header_table_size => 16384..16#7fffffff,
53
+ initial_window_size => 0..16#7fffffff,
54
+ max_concurrent_streams => 0..16#ffffffff,
55
+ max_frame_size => 16384..16777215,
56
+ max_header_list_size => 16384..16#ffffffff
57
+}.
58
+-export_type([settings/0]).
59
60
-type error() :: no_error
61
| protocol_error
0 commit comments