mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-30 02:37:57 +08:00
adjust file location
This commit is contained in:
parent
ecfea6f713
commit
2e80c2b132
@ -38,7 +38,7 @@ SET(CMAKE_INSTALL_PREFIX /usr/local)
|
||||
|
||||
install(TARGETS drogon DESTINATION lib)
|
||||
|
||||
file(GLOB trantor_net_headers "${CMAKE_CURRENT_SOURCE_DIR}/lib/inc/*.h")
|
||||
file(GLOB trantor_net_headers "${CMAKE_CURRENT_SOURCE_DIR}/lib/inc/drogon/*.h")
|
||||
install(FILES ${trantor_net_headers} DESTINATION include/drogon)
|
||||
|
||||
add_dependencies(drogon trantor)
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include <HttpAppFramework.h>
|
||||
#include <drogon/HttpAppFramework.h>
|
||||
int main()
|
||||
{
|
||||
drogon::HttpAppFramework framework("0.0.0.0",12345);
|
||||
|
@ -1,7 +1,13 @@
|
||||
//
|
||||
// Copyright 2018, An Tao. All rights reserved.
|
||||
//
|
||||
// Use of this source code is governed by a MIT license
|
||||
// that can be found in the License file.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <HttpRequest.h>
|
||||
#include <HttpResponse.h>
|
||||
#include <drogon/HttpRequest.h>
|
||||
#include <drogon/HttpResponse.h>
|
||||
#include <trantor/utils/NonCopyable.h>
|
||||
#include <string>
|
||||
#include <set>
|
||||
@ -30,7 +36,7 @@ namespace drogon
|
||||
|
||||
|
||||
|
||||
//tool funs
|
||||
//tool funcs
|
||||
#ifdef USE_UUID
|
||||
std::string getUuid();
|
||||
std::string stringToHex(unsigned char* ptr, long long length);
|
@ -1,4 +1,9 @@
|
||||
#include "HttpAppFramework.h"
|
||||
// Copyright 2018, An Tao. All rights reserved.
|
||||
//
|
||||
// Use of this source code is governed by a MIT license
|
||||
// that can be found in the License file.
|
||||
|
||||
#include <drogon/HttpAppFramework.h>
|
||||
#include "HttpServer.h"
|
||||
#include <sys/stat.h>
|
||||
#include <iostream>
|
||||
|
@ -17,8 +17,8 @@
|
||||
|
||||
#ifndef MUDUO_NET_HTTP_HTTPCONTEXT_H
|
||||
#define MUDUO_NET_HTTP_HTTPCONTEXT_H
|
||||
#include "HttpRequest.h"
|
||||
#include "HttpResponse.h"
|
||||
#include <drogon/HttpRequest.h>
|
||||
#include <drogon/HttpResponse.h>
|
||||
#include <trantor/utils/MsgBuffer.h>
|
||||
|
||||
using namespace trantor;
|
||||
|
@ -14,7 +14,7 @@
|
||||
// Use of this source code is governed by a MIT license
|
||||
// that can be found in the License file.
|
||||
|
||||
#include "HttpRequest.h"
|
||||
#include <drogon/HttpRequest.h>
|
||||
//解url编码实现
|
||||
#include <iostream>
|
||||
static int urldecode(const char* encd,char* decd)
|
||||
|
@ -14,7 +14,7 @@
|
||||
// Use of this source code is governed by a MIT license
|
||||
// that can be found in the License file.
|
||||
|
||||
#include "HttpResponse.h"
|
||||
#include <drogon/HttpResponse.h>
|
||||
|
||||
#include <trantor/utils/Logger.h>
|
||||
#include <stdio.h>
|
||||
|
@ -18,8 +18,8 @@
|
||||
|
||||
#include <trantor/utils/Logger.h>
|
||||
#include "HttpContext.h"
|
||||
#include "HttpRequest.h"
|
||||
#include "HttpResponse.h"
|
||||
#include <drogon/HttpRequest.h>
|
||||
#include <drogon/HttpResponse.h>
|
||||
#include <functional>
|
||||
|
||||
using namespace std::placeholders;
|
||||
|
Loading…
Reference in New Issue
Block a user