From 528d0ebffd11c8c07259e0e764f3381a12d82418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 26 Jul 2011 13:58:48 +0200 Subject: Small cosmetic changes and doc update to the cookie patch --- src/cowboy_clock.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cowboy_clock.erl') diff --git a/src/cowboy_clock.erl b/src/cowboy_clock.erl index 333df94..66fc009 100644 --- a/src/cowboy_clock.erl +++ b/src/cowboy_clock.erl @@ -69,6 +69,10 @@ stop() -> rfc1123() -> ets:lookup_element(?TABLE, rfc1123, 2). +%% @doc Return the current date and time formatted according to RFC-2109. +%% +%% This format is used in the 'Set-Cookie' header sent with +%% HTTP responses. -spec rfc2109(datetime()) -> binary(). rfc2109(LocalTime) -> {{YYYY,MM,DD},{Hour,Min,Sec}} = @@ -91,7 +95,6 @@ rfc2109(LocalTime) -> MinBin/binary, ":", SecBin/binary, " GMT">>. - %% gen_server. %% @private -- cgit v1.2.3