diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-30 14:25:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-30 14:25:29 +0200 |
commit | 07780b06aa7b0fe049cc412309cf87e7fb10a0ef (patch) | |
tree | b6d0f1ee50223f5cbbc4b8c5d0dc4f69ff7f2352 /web/module | |
parent | 259a92ac4e1ac50e4c029f54265b735f6214b49d (diff) |
Implement module configuration with an option list
Diffstat (limited to 'web/module')
-rw-r--r-- | web/module | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |