mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
Readd generated Timehandler.cpp & TimeHandler.h.
Update components with NetSSL_Win. Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
parent
a40dd20462
commit
a221eba7d9
@ -1,2 +0,0 @@
|
||||
/TimeHandler.h
|
||||
/TimeHandler.cpp
|
49
PageCompiler/samples/HTTPTimeServer/src/TimeHandler.cpp
Normal file
49
PageCompiler/samples/HTTPTimeServer/src/TimeHandler.cpp
Normal file
@ -0,0 +1,49 @@
|
||||
//
|
||||
// TimeHandler.cpp
|
||||
//
|
||||
// This file has been generated from TimeHandler.cpsp on 2016-05-08 21:03:48.
|
||||
//
|
||||
|
||||
|
||||
#include "TimeHandler.h"
|
||||
#include "Poco/Net/HTTPServerRequest.h"
|
||||
#include "Poco/Net/HTTPServerResponse.h"
|
||||
#include "Poco/Net/HTMLForm.h"
|
||||
|
||||
|
||||
#include "Poco/DateTime.h"
|
||||
#include "Poco/DateTimeFormatter.h"
|
||||
|
||||
|
||||
void TimeHandler::handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response)
|
||||
{
|
||||
response.setChunkedTransferEncoding(true);
|
||||
response.setContentType("text/html");
|
||||
|
||||
Poco::Net::HTMLForm form(request, request.stream());
|
||||
std::ostream& responseStream = response.send();
|
||||
responseStream << "";
|
||||
responseStream << "\n";
|
||||
responseStream << "";
|
||||
responseStream << "\n";
|
||||
responseStream << "\n";
|
||||
responseStream << "";
|
||||
#line 6 "Z:\\git\\poco-1.7.3\\PageCompiler\\samples\\HTTPTimeServer\\src\\TimeHandler.cpsp"
|
||||
|
||||
Poco::DateTime now;
|
||||
std::string dt(Poco::DateTimeFormatter::format(now, "%W, %e %b %y %H:%M:%S %Z"));
|
||||
responseStream << "\n";
|
||||
responseStream << "<html>\n";
|
||||
responseStream << "<head>\n";
|
||||
responseStream << "<title>HTTPTimeServer powered by POCO C++ Libraries and PageCompiler</title>\n";
|
||||
responseStream << "<meta http-equiv=\"refresh\" content=\"1\">\n";
|
||||
responseStream << "</head>\n";
|
||||
responseStream << "<body>\n";
|
||||
responseStream << "<p style=\"text-align: center; font-size: 48px;\">";
|
||||
#line 16 "Z:\\git\\poco-1.7.3\\PageCompiler\\samples\\HTTPTimeServer\\src\\TimeHandler.cpsp"
|
||||
responseStream << ( dt );
|
||||
responseStream << "</p>\n";
|
||||
responseStream << "</body>\n";
|
||||
responseStream << "</html>\n";
|
||||
responseStream << "";
|
||||
}
|
22
PageCompiler/samples/HTTPTimeServer/src/TimeHandler.h
Normal file
22
PageCompiler/samples/HTTPTimeServer/src/TimeHandler.h
Normal file
@ -0,0 +1,22 @@
|
||||
//
|
||||
// TimeHandler.h
|
||||
//
|
||||
// This file has been generated from TimeHandler.cpsp on 2016-05-08 21:03:48.
|
||||
//
|
||||
|
||||
|
||||
#ifndef TimeHandler_INCLUDED
|
||||
#define TimeHandler_INCLUDED
|
||||
|
||||
|
||||
#include "Poco/Net/HTTPRequestHandler.h"
|
||||
|
||||
|
||||
class TimeHandler: public Poco::Net::HTTPRequestHandler
|
||||
{
|
||||
public:
|
||||
void handleRequest(Poco::Net::HTTPServerRequest& request, Poco::Net::HTTPServerResponse& response);
|
||||
};
|
||||
|
||||
|
||||
#endif // TimeHandler_INCLUDED
|
@ -7,6 +7,7 @@ Util
|
||||
Net
|
||||
Crypto
|
||||
NetSSL_OpenSSL
|
||||
NetSSL_Win
|
||||
Data
|
||||
Data/SQLite
|
||||
Data/ODBC
|
||||
|
Loading…
Reference in New Issue
Block a user