A vibe.d thing
Russel Winder
russel at winder.org.uk
Sat Jul 28 10:26:54 UTC 2018
On Fri, 2018-07-27 at 15:58 -0400, Steven Schveighoffer via
Digitalmars-d-learn wrote:
> […]
>
> I'm guessing they don't use it, but use peek instead (or maybe peek
> to
> get the size, and then read to get the data).
I tried using req.bodyReader.peek, but that only works for situations
where there is only a small amount of data. In particular it fails
spectacularly if there is a large amount of data, but for what reason I
cannot infer.
Do you have an example of getting the body data size so as to do that,
I can't see non-deprecated things to do that.
> I'd be surprised if there isn't some better I/O options in vibe.d. I
> mainly use the higher-level features.
The CVu Code Critique 112 code isn't doing anything actually sensible,
it is about echoing POSTed data. I suspect vibe.d is only reqlly
working when used in an idiomatic way for stuff that is normal in the
single threaded asynchronous server world.
If you can point me at a few examples, I have today and Tuesday to try
and put together a working example solving the CC112 problem that is
not totally crap.
--
Russel.
===========================================
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Road m: +44 7770 465 077
London SW11 1EN, UK w: www.russel.org.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20180728/b9baa448/attachment.sig>
More information about the Digitalmars-d-learn
mailing list