On Tuesday, 13 March 2018 at 10:12:24 UTC, Steven Schveighoffer
On 3/9/18 11:34 AM, aberba wrote:
On Friday, 9 March 2018 at 16:32:28 UTC, aberba wrote:
New blog post for the learning audience
Very nice! Although this is missing one of my favorite vibe.d
web interface features -- automatic parsing of route parameters:
void getRoute(HTTPServerResponse res, int foo, Nullable!int
res.writeBody(format("foo = %s, bar = %s", foo, bar));
/route => Error, foo required
/route?foo=1 => "foo = 1, bar = Nullable.null"
/route?foo=2&bar=5 => "foo = 1, bar = 5"
I don't know why but I dont really use that feature often. I tend
to access them with req.query.get("param") and
req.form.get("param") directly. Don't know why... time to save
some key strokes. ...but how does file handling work with this