From 07780b06aa7b0fe049cc412309cf87e7fb10a0ef Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 30 Apr 2015 14:25:29 +0200 Subject: Implement module configuration with an option list --- web/module | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'web/module') 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 -- cgit v1.1