Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions examples/ajp/app.vala
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using VSGI;

public class App : Handler {

public override bool handle (Request req, Response res) throws Error {
return res.expand_utf8 ("Hello world!");
}
}

public int main (string[] args) {
return Server.new ("ajp", handler: new App ()).run (args);
}
1 change: 1 addition & 0 deletions examples/ajp/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
executable('ajp', 'app.vala', dependencies: [glib, gio, soup, vsgi])
1 change: 1 addition & 0 deletions examples/meson.build
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
subdir('ajp')
subdir('api-interaction')
subdir('app')
subdir('cgi')
Expand Down
6 changes: 6 additions & 0 deletions src/vsgi/servers/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ shared_library('vsgi-scgi', 'vsgi-scgi.vala',
vala_args: vala_defines,
install: true,
install_dir: '@0@/vsgi-@1@/servers'.format(get_option('libdir'), api_version))

shared_library('vsgi-ajp', 'vsgi-ajp.vala',
dependencies: [glib, gobject, gio, soup, vsgi],
vala_args: vala_defines,
install: true,
install_dir: '@0@/vsgi-@1@/servers'.format(get_option('libdir'), api_version))
Loading