Created
October 5, 2013 02:10
-
-
Save vinipsmaker/6835754 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Programadores de Qt devem estar muito familiarizados com esse código | |
#include "mainhandler.h" | |
#include <Tufao/HttpServerRequest> | |
MainHandler::MainHandler(QObject *parent) : | |
QObject(parent) | |
{ | |
} | |
void MainHandler::handleRequest(Tufao::HttpServerRequest *request, | |
Tufao::HttpServerResponse *response) | |
{ | |
response->writeHead(Tufao::HttpServerResponse::OK); | |
response->end("Hello " + request->url()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment