Boost logo

Boost :

Subject: Re: [boost] [beast] Version 80: code review opportunity
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2017-07-14 09:19:11

Den 13-07-2017 kl. 13:09 skrev Paul A. Bristow via Boost:


> I think Vinnie deserves some sort of medal ;-)

It is certainly unusual to make so much work during a review! :-)

I have not time for making a review, but I will just note that we moved
away from a custom Boost.Asio-based server. We now use POCO's http
server. The amount of code I had to write was very low. Basically I only
had to implement a request handler:

class XmlRequestHandler : public Poco::Net::HTTPRequestHandler

     void handleRequest( Poco::Net::HTTPServerRequest& request,
                         Poco::Net::HTTPServerResponse& response )

         std::istream& is =;
         response.setChunkedTransferEncoding( true );
         response.setContentType( "text/html" );

         String responseData;
         generateResponse( is, responseData );

         std::ostream& ostr = response.send();
         ostr << responseData;

Now I don't like the OO'pattern that fores me to new handlers, but
otherwise the shortness of it is pretty sweet. Perhaps beast could
consider to have such high-level functionality.

kind regards


Boost list run by bdawes at, gregod at, cpdaniel at, john at