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

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to