From 76d6ed83ceb8dfd4b70336c24757b55cfad758f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 24 Jul 2012 01:07:31 +0200 Subject: Improve typespecs --- src/cowboy_http_rest.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cowboy_http_rest.erl') diff --git a/src/cowboy_http_rest.erl b/src/cowboy_http_rest.erl index b37f20e..f58d0ee 100644 --- a/src/cowboy_http_rest.erl +++ b/src/cowboy_http_rest.erl @@ -28,16 +28,16 @@ %% Media type. content_types_p = [] :: - [{{binary(), binary(), [{binary(), binary()}]}, atom()}], + [{binary() | {binary(), binary(), [{binary(), binary()}]}, atom()}], content_type_a :: undefined - | {{binary(), binary(), [{binary(), binary()}]}, atom()}, + | {binary() | {binary(), binary(), [{binary(), binary()}]}, atom()}, %% Language. languages_p = [] :: [binary()], language_a :: undefined | binary(), %% Charset. - charsets_p = [] :: [binary()], + charsets_p = [] :: [{binary(), atom()}], charset_a :: undefined | binary(), %% Cached resource calls. -- cgit v1.2.3