[bknr-cvs] edi changed trunk/thirdparty/drakma/

BKNR Commits bknr at bknr.net
Fri May 7 10:17:59 UTC 2010


Revision: 4529
Author: edi
URL: http://bknr.net/trac/changeset/4529

Export parse-cookie-date

U   trunk/thirdparty/drakma/CHANGELOG.txt
U   trunk/thirdparty/drakma/doc/index.html
U   trunk/thirdparty/drakma/packages.lisp

Modified: trunk/thirdparty/drakma/CHANGELOG.txt
===================================================================
--- trunk/thirdparty/drakma/CHANGELOG.txt	2010-05-07 10:07:41 UTC (rev 4528)
+++ trunk/thirdparty/drakma/CHANGELOG.txt	2010-05-07 10:17:59 UTC (rev 4529)
@@ -1,3 +1,4 @@
+Export PARSE-COOKIE-DATE
 Safer method to render URIs
 Allow for GET/POST parameters without a value (seen on Lotus webservers)
 

Modified: trunk/thirdparty/drakma/doc/index.html
===================================================================
--- trunk/thirdparty/drakma/doc/index.html	2010-05-07 10:07:41 UTC (rev 4528)
+++ trunk/thirdparty/drakma/doc/index.html	2010-05-07 10:17:59 UTC (rev 4529)
@@ -86,6 +86,7 @@
           <li><a href="#delete-old-cookies"><code>delete-old-cookies</code></a>
           <li><a href="#*allow-dotless-cookie-domains-p*"><code>*allow-dotless-cookie-domains-p*</code></a>
           <li><a href="#*ignore-unparseable-cookie-dates-p*"><code>*ignore-unparseable-cookie-dates-p*</code></a>
+          <li><a href="#parse-cookie-date"><code>parse-cookie-date</code></a>
         </ol>
       <li><a href="#headers">Headers</a>
         <ol>
@@ -1326,6 +1327,31 @@
 
 <!-- End of entry for *IGNORE-UNPARSEABLE-COOKIE-DATES-P* -->
 
+<!-- Entry for PARSE-COOKIE-DATE -->
+
+<p><br>[Function]<br><a class=none name='parse-cookie-date'><b>parse-cookie-date</b> <i>string</i> => <i>universal-time</i></a>
+<blockquote><br>
+
+Parses (the string representation of) a cookie expiry date <code><i>string</i></code> and returns it as a Lisp <a href="http://www.lispworks.com/documentation/HyperSpec/Body/25_adb.htm">universal time</a>.  Currently understands the following formats:
+<pre>
+"Wed, 06-Feb-2008 21:01:38 GMT"
+"Wed, 06-Feb-08 21:01:38 GMT"
+"Tue Feb 13 08:00:00 2007 GMT"
+"Wednesday, 07-February-2027 08:55:23 GMT"
+"Wed, 07-02-2017 10:34:45 GMT"
+</pre>
+Instead of <code>"GMT"</code>, time zone abbreviations
+like <code>"CEST"</code>
+and <a href="http://en.wikipedia.org/wiki/Coordinated_Universal_Time">UTC</a>
+offsets like <code>"GMT-01:30"</code> are also allowed.
+<p>
+While this function has <em>cookie</em> in its name, it might come in
+handy in other situations as well and it is thus exported as a
+convenience function.
+</blockquote>
+
+<!-- End of entry for PARSE-COOKIE-DATE -->
+
 <h4><a name="headers" class=none>Headers</a></h4>
 
 This section assembles a couple of convenience functions which can be

Modified: trunk/thirdparty/drakma/packages.lisp
===================================================================
--- trunk/thirdparty/drakma/packages.lisp	2010-05-07 10:07:41 UTC (rev 4528)
+++ trunk/thirdparty/drakma/packages.lisp	2010-05-07 10:17:59 UTC (rev 4529)
@@ -64,6 +64,7 @@
            :parameter-error
            :parameter-present-p
            :parameter-value
+           :parse-cookie-date
            :read-tokens-and-parameters
            :split-tokens
            :syntax-error))





More information about the Bknr-cvs mailing list