Просмотр исходного кода

Add missing specs to an internal cowboy_req function

Loïc Hoguin 8 лет назад
Родитель
Сommit
b63b6ef865
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/cowboy_req.erl

+ 1 - 0
src/cowboy_req.erl

@@ -676,6 +676,7 @@ push(Path, Headers, #{pid := Pid, streamid := StreamID,
 %% Internal.
 
 %% @todo What about set-cookie headers set through set_resp_header or reply?
+-spec response_headers(Headers, req()) -> Headers when Headers::cowboy:http_headers().
 response_headers(Headers0, Req) ->
 	RespHeaders = maps:get(resp_headers, Req, #{}),
 	Headers = maps:merge(#{