aboutsummaryrefslogtreecommitdiff
path: root/web/module
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-30 14:25:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-30 14:25:29 +0200
commit07780b06aa7b0fe049cc412309cf87e7fb10a0ef (patch)
treeb6d0f1ee50223f5cbbc4b8c5d0dc4f69ff7f2352 /web/module
parent259a92ac4e1ac50e4c029f54265b735f6214b49d (diff)
Implement module configuration with an option list
Diffstat (limited to 'web/module')
-rw-r--r--web/module6
1 files changed, 4 insertions, 2 deletions
diff --git a/web/module b/web/module
index 22f9fcc..8657c51 100644
--- a/web/module
+++ b/web/module
@@ -116,7 +116,9 @@ namespace web
// new status.
//
virtual std::ostream&
- content (status_code, const std::string& type, bool buffer = true) = 0;
+ content (status_code code = 200,
+ const std::string& type = "text/html;charset=utf-8",
+ bool buffer = true) = 0;
// Set status code without writing any content. On status change,
// discard buffered content or throw sequence_error if content was
@@ -175,7 +177,7 @@ namespace web
// @@ Is log available? Should we pass it?
//
virtual void
- init (const name_values&) = 0;
+ init (const name_values&, log&) = 0;
// Any exception other than invalid_request described above that
// leaves this function is treated by the web server implementation