From bb800ee0d93da6bf4725002c7a27a2ae6263bb22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 4 May 2011 11:29:06 +0200 Subject: Use http_headers() type in cowboy_http_req:headers/1. --- src/cowboy_http_req.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl index 649f41d..569bb9b 100644 --- a/src/cowboy_http_req.erl +++ b/src/cowboy_http_req.erl @@ -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}. -- cgit v1.2.3