Skip to content

Instantly share code, notes, and snippets.

@vinipsmaker
Created October 5, 2013 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vinipsmaker/6835754 to your computer and use it in GitHub Desktop.
Save vinipsmaker/6835754 to your computer and use it in GitHub Desktop.
// 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