Curl wrapper That's sick
bls
bizprac at orange.fr
Mon May 23 18:44:28 PDT 2011
Am 16.05.2011 23:07, schrieb jdrewsen:
> Hi,
>
> I've been working on a wrapper for the etc.c.curl module. It is now
> pretty stable and I would very much like some feedback on the API.
>
> http://freeze.steamwinter.com/D/web/phobos/etc_curl.html
>
> BTW I use template mixins which doesn't seem to get included in the
> generated docs. Is there any way I can make this work?
>
> /Jonas
You really think this is good for your mental health ?
// PUT with data senders
string msg = "Hello world";
--------------------------------
http.onSend = (void[] data) {
if (msg.empty) return 0;
auto m = cast(void[])msg;
typeof(size_t) len = m.length;
data[0..len] = m[0..$];
msg.length = 0;
return len;
};
Remarkable stuff, indeed !
I am not even sure that this thingy compiles , but fuc da duc, at least
it shows what you CAN do in D. :)
More information about the Digitalmars-d
mailing list