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:
parent
849ec73eb8
commit
bb800ee0d9
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ header(Name, Req, Default) ->
|
|||
end.
|
||||
|
||||
-spec headers(Req::#http_req{})
|
||||
-> {list({Name::atom() | string(), Value::string()}), Req::#http_req{}}.
|
||||
-> {Headers::http_headers(), Req::#http_req{}}.
|
||||
headers(Req) ->
|
||||
{Req#http_req.headers, Req}.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue