Added memoryfilesystem and working on c wrapper

This commit is contained in:
2025-01-03 05:50:44 -06:00
parent 8e4ec4ee3e
commit 7e6f0f1fca
17 changed files with 1229 additions and 8 deletions

View File

@ -85,6 +85,16 @@ namespace Tesses::Framework::Http
data->currentHeaders.Clear();
return 0;
}*/
std::string ServerContext::GetUrlWithQuery()
{
if(this->queryParams.kvp.empty()) return this->path;
return this->path + "?" + HttpUtils::QueryParamsEncode(this->queryParams);
}
std::string ServerContext::GetOriginalPathWithQuery()
{
if(this->queryParams.kvp.empty()) return this->originalPath;
return this->originalPath + "?" + HttpUtils::QueryParamsEncode(this->queryParams);
}
bool ServerContext::NeedToParseFormData()
{
std::string ct;

View File

@ -381,7 +381,7 @@ namespace Tesses::Framework::Http {
s.push_back(item);
else if(item >= '0' && item <= '9')
s.push_back(item);
else if(item == '-' || item == '_' || item == '.' || item == '~')
else if(item == '-' || item == '_' || item == '.' || item == '~' || item == '/')
s.push_back(item);
else
{