Click here to Skip to main content
15,881,588 members
Articles / Web Development / HTML

A C++ Embedded Web Server

Rate me:
Please Sign up or sign in to vote.
4.76/5 (47 votes)
23 Jun 2014BSD7 min read 448.6K   8.5K   209  
Give a C++ application its own web page
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>http::server::cWebemRequestHandler Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6-NO -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<b>http</b>::<b>server</b>::<a class="el" href="classhttp_1_1server_1_1c_webem_request_handler.html">cWebemRequestHandler</a></div>
<h1>http::server::cWebemRequestHandler Class Reference</h1><!-- doxytag: class="http::server::cWebemRequestHandler" -->The webem request handler.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="c_webem_8h-source.html">cWebem.h</a>&gt;</code>
<p>
<a href="classhttp_1_1server_1_1c_webem_request_handler-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4864092e57779786f13f0c5ca93029ee"></a><!-- doxytag: member="http::server::cWebemRequestHandler::cWebemRequestHandler" ref="4864092e57779786f13f0c5ca93029ee" args="(const std::string &amp;doc_root)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhttp_1_1server_1_1c_webem_request_handler.html#4864092e57779786f13f0c5ca93029ee">cWebemRequestHandler</a> (const std::string &amp;doc_root)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct with a directory containing files to be served. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="084aa11cfe753c510c9680e36e6ce125"></a><!-- doxytag: member="http::server::cWebemRequestHandler::setWebem" ref="084aa11cfe753c510c9680e36e6ce125" args="(cWebem *webem)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setWebem</b> (<a class="el" href="classhttp_1_1server_1_1c_webem.html">cWebem</a> *webem)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62a055936f1100e457d97bbcb5570bed"></a><!-- doxytag: member="http::server::cWebemRequestHandler::handle_request" ref="62a055936f1100e457d97bbcb5570bed" args="(const request &amp;req, reply &amp;rep)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhttp_1_1server_1_1c_webem_request_handler.html#62a055936f1100e457d97bbcb5570bed">handle_request</a> (const request &amp;req, reply &amp;rep)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Handle a request and produce a reply. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The webem request handler. 
<p>
A specialization of the boost::asio request handler<p>
Application code should not use this class. 
<p>
<hr>The documentation for this class was generated from the following files:<ul>
<li>C:/Documents and Settings/james/My Documents/code/webem/world/<a class="el" href="c_webem_8h-source.html">cWebem.h</a><li>C:/Documents and Settings/james/My Documents/code/webem/world/cWebem.cpp</ul>
<hr size="1"><address style="align: right;"><small>Generated on Mon May 31 11:27:51 2010 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The BSD License


Written By
Founder Raven's Point Consulting
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions