0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Use http_headers() type in cowboy_http_req:headers/1.

This commit is contained in:
Loïc Hoguin 2011-05-04 11:29:06 +02:00
parent 849ec73eb8
commit bb800ee0d9

View file

@ -136,7 +136,7 @@ header(Name, Req, Default) ->
end. end.
-spec headers(Req::#http_req{}) -spec headers(Req::#http_req{})
-> {list({Name::atom() | string(), Value::string()}), Req::#http_req{}}. -> {Headers::http_headers(), Req::#http_req{}}.
headers(Req) -> headers(Req) ->
{Req#http_req.headers, Req}. {Req#http_req.headers, Req}.