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 bar)
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"