1
0
forked from cat/WebBase

Fixed webkit issue, removed getlineAndCount, default is 0.0.0.0 now, AI aided on header processing rewrite

This commit is contained in:
2025-07-17 01:30:53 +03:00
parent e4d187e93e
commit f5da056a48
5 changed files with 38 additions and 43 deletions

View File

@@ -14,7 +14,7 @@
#include <string>
#include <unordered_map>
#define IP "127.0.0.1"
#define IP "0.0.0.0"
#define PORT 8000
using asocket = asio::ip::tcp::socket;
using asocket_ptr = std::shared_ptr<asocket>;
@@ -43,9 +43,7 @@ private:
// Breaking Header to in lines
void processHTTPHeader();
void inline processArgs();
void inline processHeaderValues(std::basic_istream<char> &stream,
std::size_t &octetCount,
std::size_t headerSize);
void inline processHeaderValues(std::basic_istream<char> &stream);
void inline processBody();
// Networking