Vala Server Gateway Interface
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
src
tests
vapi
README.md
meson.build

README.md

Vala Server Gateway Interface

VSGI is a middleware that interfaces different Web server technologies under a common and simple set of abstractions.

using VSGI;

class App : Handler 
{
    public override async bool handle_async (Request req, Response res) throws Error 
    {
        return yield res.expand_utf8_async ("Hello world!");
    }
}

Server.@new ("http", handler: new App ()).run ({"app", "--address=0.0.0.0:3003", "--forks=4"});