Closed bubnenkoff closed 9 years ago
Aye, I'll add a comparison in the README. One was originally present, but I removed it because it was fairly long on vibe.d's side of things.
Also, yes. Those are equivalent, as is something like,
shared static this()
{
auto router = Vibrant;
router.Get("/hello", (req, res) => "Hello user!");
}
thanks, but how to specify port number?
2015-07-05 19:07 GMT+03:00 Mihail K notifications@github.com:
Aye, I'll add a comparison in the README. One was originally present, but I removed it because it was fairly long on vibe.d's side of things.
Also, yes. Those are equivalent, as is something like,
shared static this() { auto router = Vibrant;
router.Get("/hello", (req, res) => "Hello user!");
}
— Reply to this email directly or view it on GitHub https://github.com/Mihail-K/vibrant.d/issues/1#issuecomment-118635493.
You can specify a port in two ways. The short way is to supply it as a parameter,
with(Vibrant(8080))
{
}
However, you can also pass in an HTTPServerSettings object, if you so choose.
auto settings = new HTTPServerSettings;
settings.port = 8080;
with(Vibrant(settings))
{
}
Hello, could you add in readme comparison of classical vibed routing with Vibrant routing system?
Also I have got question:
Analog of: