aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_http_hd.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cow_http_hd.erl')
-rw-r--r--src/cow_http_hd.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cow_http_hd.erl b/src/cow_http_hd.erl
index 1748208..64d28fb 100644
--- a/src/cow_http_hd.erl
+++ b/src/cow_http_hd.erl
@@ -56,7 +56,7 @@
% @todo -export([parse_forwarded/1]). RFC7239
% @todo -export([parse_from/1]). RFC7231
-export([parse_host/1]).
-% @todo -export([parse_http2_settings/1]). HTTP/2 (upcoming)
+-export([parse_http2_settings/1]).
-export([parse_if_match/1]).
-export([parse_if_modified_since/1]).
-export([parse_if_none_match/1]).
@@ -1883,6 +1883,12 @@ horse_parse_host_ipv6_v4() ->
).
-endif.
+%% @doc Parse the HTTP2-Settings header.
+
+-spec parse_http2_settings(binary()) -> binary().
+parse_http2_settings(HTTP2Settings) ->
+ base64:decode(HTTP2Settings).
+
%% @doc Parse the If-Match header.
-spec parse_if_match(binary()) -> '*' | [etag()].