[racket] Client-side cookies
Beta version is ready.
No docs yet. Simply look into main.rkt -- there are examples of usage and drop-in replacements for pure-port.
TODO: IDNA for canonical names (RFC 5890) and support for http://publicsuffix.org/list/
Question to all: how to provide extensibility for module?
One may want to save cookie-jar in file, or import mozilla cookie-jar, or implement cookie-filter...
Now I provided set-save-cookie! and set-headers+cookies for replacing this save-cookie! and headers+cookies accordingly. Is this ok?
I thought about parameters, but in that case, paramter will be called on every cookie-saving and it can be rather slow (parameters are slow, sic).
Суббота, 11 января 2014, 3:17 -08:00 от Duncan Bayne <dhgbayne at fastmail.fm>:
>On Thu, Jan 9, 2014, at 05:08 PM, Roman Klochkov wrote:
>> I'm making fully RFC6265 compliant cookie support for net/url and http.
>> https://github.com/Kalimehtar/client-cookies
>>
>> It is still pre-alpha, but, I hope, will be ready in 2-3 weeks.
>
>That looks really exciting. I'm busy re-writing my Common Lisp
>web-scraper in Racket (
>https://github.com/duncan-bayne/myfitnessdata/branches/2.0 ) and I'd
>love to use your library ... I'll keep an eye on it, and give it a whirl
>as soon as it looks usable. Happy to provide feedback / testing / pull
>requests :)
>
>--
>Duncan Bayne
>ph: +61 420817082 | web: http://duncan-bayne.github.com/ | skype:
>duncan_bayne
>
>I usually check my mail every 24 - 48 hours. If there's something
>urgent going on, please send me an SMS or call me.
--
Roman Klochkov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140112/def23714/attachment.html>