A Swift API for Apache. This wraps the CApache system package and
provides Swift convenience on top of that.
This package is part of the mod_swift effort.
Apache provides a very low level API towards Apache,
for something more convenient,
checkout ApacheExpress.
Using the Apache package
NOTE: This requires a mod_swift installation. W/o it, it will
fail to built CApache!
If you setup a new module from scratch, use:
swift apache init
Otherwise setup your Package.swift to include Apache:
Swift Apache
A Swift API for Apache. This wraps the CApache system package and provides Swift convenience on top of that. This package is part of the mod_swift effort.
Apache provides a very low level API towards Apache, for something more convenient, checkout ApacheExpress.
Using the Apache package
NOTE: This requires a mod_swift installation. W/o it, it will fail to built CApache!
If you setup a new module from scratch, use:
Otherwise setup your Package.swift to include Apache:
Building an Apache module
Simply invoke
This wraps Swift Package Manager to build your package and then produce a proper module which can be loaded into Apache.
To run a test Apache instance, use:
Access the Apache using: http://localhost:8042/.
Example
Check
mods_baredemo
for a low level Apache module which uses the APIs of this package.A simple Apache handler:
An Apache handler using the database:
Apache Configuration for both:
Who
mod_swift is brought to you by ZeeZide. We like feedback, GitHub stars, cool contract work, presumably any form of praise you can think of.
There is a
#mod_swift
channel on the Noze.io Slack.