mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-06-01 10:05:31 +00:00
Overhaul cmake configuration, add console api, fix http code that caused issues with cgi-bin
This commit is contained in:
@@ -19,8 +19,10 @@
|
||||
#pragma once
|
||||
#include "../Streams/Stream.hpp"
|
||||
#include "HttpUtils.hpp"
|
||||
// clang-format off
|
||||
#include "TessesFramework/Filesystem/LocalFS.hpp"
|
||||
#include "TessesFramework/Filesystem/VFSFix.hpp"
|
||||
// clang-format on
|
||||
#include "WebSocket.hpp"
|
||||
namespace Tesses::Framework::Http {
|
||||
|
||||
|
||||
@@ -17,8 +17,10 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
// clang-format off
|
||||
#include "TessesFramework/Filesystem/LocalFS.hpp"
|
||||
#include "TessesFramework/Filesystem/VFSFix.hpp"
|
||||
// clang-format on
|
||||
#include <optional>
|
||||
namespace Tesses::Framework::Platform::Environment {
|
||||
extern const char EnvPathSeperator;
|
||||
|
||||
@@ -24,9 +24,10 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#if defined(_WIN32)
|
||||
|
||||
#include "TessesFramework/Filesystem/VFSFix.hpp"
|
||||
// clang-format off
|
||||
#include <windows.h>
|
||||
#include "TessesFramework/Filesystem/VFSFix.hpp"
|
||||
// clang format on
|
||||
#undef min
|
||||
#else
|
||||
#include <sys/statvfs.h>
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
#include "TessesFramework/Http/HttpServer.hpp"
|
||||
#include "TessesFramework/Common.hpp"
|
||||
#include "TessesFramework/Crypto/Crypto.hpp"
|
||||
#include "TessesFramework/Filesystem/VFS.hpp"
|
||||
#include "TessesFramework/Filesystem/VFSFix.hpp"
|
||||
|
||||
#include "TessesFramework/Http/ContentDisposition.hpp"
|
||||
#include "TessesFramework/Http/HttpStream.hpp"
|
||||
#include "TessesFramework/Streams/BufferedStream.hpp"
|
||||
@@ -33,6 +32,10 @@
|
||||
|
||||
#include <TessesFramework/Http/HttpUtils.hpp>
|
||||
#include <iostream>
|
||||
// clang-format off
|
||||
#include "TessesFramework/Filesystem/VFS.hpp"
|
||||
#include "TessesFramework/Filesystem/VFSFix.hpp"
|
||||
// clang-format on
|
||||
using FileStream = Tesses::Framework::Streams::FileStream;
|
||||
using Stream = Tesses::Framework::Streams::Stream;
|
||||
using SeekOrigin = Tesses::Framework::Streams::SeekOrigin;
|
||||
@@ -711,8 +714,8 @@ void HttpServer::StartAccepting() {
|
||||
}
|
||||
if (this->showARTL) {
|
||||
if (!svr->IsValid())
|
||||
StdOut()
|
||||
<< "\x1B[31mError, we failed to bind or something\x1B[39m" << NewLine();
|
||||
StdOut() << "\x1B[31mError, we failed to bind or something\x1B[39m"
|
||||
<< NewLine();
|
||||
StdOut() << "\x1B[31mAlmost Ready to Listen\x1B[39m" << NewLine();
|
||||
}
|
||||
|
||||
|
||||
@@ -22,9 +22,12 @@
|
||||
#include "sago/platform_folders.h"
|
||||
#endif
|
||||
#if defined(_WIN32)
|
||||
#include "TessesFramework/Filesystem/VFSFix.hpp"
|
||||
#include "TessesFramework/Text/StringConverter.hpp"
|
||||
|
||||
// clang-format off
|
||||
#include <windows.h>
|
||||
#include "TessesFramework/Text/StringConverter.hpp"
|
||||
#include "TessesFramework/Filesystem/VFSFix.hpp"
|
||||
// clang-format on
|
||||
|
||||
using namespace Tesses::Framework::Text::StringConverter;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user