Can't understand how to do server response with vibed
anonymous via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Nov 28 10:57:53 PST 2015
On 28.11.2015 19:51, Suliman wrote:
> Eghm, sorry. Not req, but res, but again errr:
>
> void action(HTTPServerRequest req, HTTPServerResponse res)
> {
> writeln(req.writeJsonBody);
> }
>
> Error: no property 'writeJsonBody' for type
> 'vibe.http.server.HTTPServerRequest'
>
> But this method are present in docs:
>
> http://vibed.org/api/vibe.http.client/HTTPClientRequest
req is not an HTTPClientRequest, it's an HTTPServerRequest.
http://vibed.org/api/vibe.http.server/HTTPServerRequest
More information about the Digitalmars-d-learn
mailing list