aboutsummaryrefslogtreecommitdiff
path: root/web/apache/service
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-30 19:20:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-06 20:34:25 +0200
commit8e866579cb459c5104c532d5e41d562d45236ea5 (patch)
treef72548e3499bfdc50bc1183ec014d14e6b53918c /web/apache/service
parentc188831c50456754de79aadc26df74149cb00422 (diff)
Implement loader
Diffstat (limited to 'web/apache/service')
-rw-r--r--web/apache/service16
1 files changed, 8 insertions, 8 deletions
diff --git a/web/apache/service b/web/apache/service
index fd5f817..7ac01a2 100644
--- a/web/apache/service
+++ b/web/apache/service
@@ -5,12 +5,12 @@
#ifndef WEB_APACHE_SERVICE
#define WEB_APACHE_SERVICE
-#include <httpd/httpd.h>
+#include <httpd.h>
#include <string>
#include <vector>
#include <cassert>
-#include <algorithm> // move()
+#include <utility> // move()
#include <web/module>
#include <web/apache/log>
@@ -45,7 +45,7 @@ namespace web
exemplar_ (exemplar),
option_names_ (std::move (opts))
{
- init_directives();
+ init_directives ();
// instance<M> () is invented to delegate processing from apache
// request handler C function to the service non static member
@@ -89,7 +89,7 @@ namespace web
worker_initializer (apr_pool_t*, server_rec* server) noexcept
{
log l (server);
- instance<M> ()->init_worker(l);
+ instance<M> ()->init_worker (l);
}
template <typename M>
@@ -101,21 +101,21 @@ namespace web
request req (r);
log l (r->server);
- return srv->handle<M>(req, l);
+ return srv->handle<M> (req, l);
}
private:
void
- init_directives();
+ init_directives ();
void
- init_worker(log& l) noexcept;
+ init_worker (log& l) noexcept;
static const char*
add_option (cmd_parms *parms, void *mconfig, const char *value) noexcept;
template <typename M>
- int handle(request& r, log& l) noexcept;
+ int handle (request& r, log& l) noexcept;
private:
std::string name_;