@@ -11,7 +11,7 @@ VSGI (Vala Server Gateway Interface) offers abstractions for different web
1111server technologies. You can choose which implementation you want with
1212a ``using `` statement as they all respect a common interface.
1313
14- .. code :: vala
14+ ::
1515
1616 using Valum;
1717 using VSGI.HTTP; // or VSGI.FastCGI
@@ -25,7 +25,7 @@ An application is defined by a function that respects the ``VSGI.ApplicationCall
2525delegate. The :doc: `router ` provides ``handle `` for that purpose along with
2626powerful routing facilities for client requests.
2727
28- .. code :: vala
28+ ::
2929
3030 var app = new Router ();
3131
@@ -36,7 +36,7 @@ An application constitute of a list of routes matching and handling user
3636requests. The router provides helpers to declare routes which internally use
3737a :doc: `route ` instance.
3838
39- .. code :: vala
39+ ::
4040
4141 app.get ("", (req, res, next, context) => {
4242 res.body.write_all ("Hello world!".data, null);
@@ -58,7 +58,7 @@ This part is pretty straightforward: you create a server that will serve your
5858application at port ``3003 `` and since ``using VSGI.HTTP `` was specified,
5959``Server `` refers to :doc: `vsgi/server/http `.
6060
61- .. code :: vala
61+ ::
6262
6363 new Server ("org.valum.example.App", app.handle).run ({"app", "--port", "3003"});
6464
@@ -68,7 +68,7 @@ application at port ``3003`` and since ``using VSGI.HTTP`` was specified,
6868Minimal application can be defined using a simple lambda function taking
6969a :doc: `vsgi/request ` and :doc: `vsgi/response `.
7070
71- .. code :: vala
71+ ::
7272
7373 new Server ("org.valum.example.App", (req, res) => {
7474 res.status = 200;
@@ -79,7 +79,7 @@ Usually, you would only pass the CLI arguments to ``run``, so that your runtime
7979can be parametrized easily, but in this case we just want our application to
8080run with fixed parameters. Options are documented per implementation.
8181
82- .. code :: vala
82+ ::
8383
8484 public static void main (string[] args) {
8585 var app = new Router ();
0 commit comments