aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-01-23 09:39:17 +0100
committerLoïc Hoguin <[email protected]>2012-01-23 09:39:17 +0100
commit67e5713b2bd353e8cc22d91ab2b9773540a9764d (patch)
treeea2fc1b820603804083f77efdf02d5a12f26bce7
parenta297d5e42b76e4d1281a1d33b54c279d8b585772 (diff)
downloadcowboy-67e5713b2bd353e8cc22d91ab2b9773540a9764d.tar.gz
cowboy-67e5713b2bd353e8cc22d91ab2b9773540a9764d.tar.bz2
cowboy-67e5713b2bd353e8cc22d91ab2b9773540a9764d.zip
Remove http_cookies/0, inline it directly in the record definition
-rw-r--r--include/http.hrl3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/http.hrl b/include/http.hrl
index 40a5c6e..f1ad337 100644
--- a/include/http.hrl
+++ b/include/http.hrl
@@ -13,7 +13,6 @@
%% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
%% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
--type http_cookies() :: list({binary(), binary()}).
-type http_status() :: non_neg_integer() | binary().
-type http_resp_body() :: iodata() | {non_neg_integer(),
fun(() -> {sent, non_neg_integer()})}.
@@ -41,7 +40,7 @@
bindings = undefined :: undefined | cowboy_dispatcher:bindings(),
headers = [] :: cowboy_http:headers(),
p_headers = [] :: [any()], %% @todo Improve those specs.
- cookies = undefined :: undefined | http_cookies(),
+ cookies = undefined :: undefined | [{binary(), binary()}],
meta = [] :: [{atom(), any()}],
%% Request body.