This commit is contained in:
UnknownObject
2026-06-30 17:49:51 +08:00
commit 292c09619e
200 changed files with 23718 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "ServerProcessor.h"
class CORSProcessor : public ServerProcessor
{
private:
std::set<std::string> ParseHeaderList(const std::string& raw_headers);
std::set<std::string> ParseMethodList(const std::string& raw_headers);
public:
uns::ResponsePtr Processor(uns::RequestPtr request) override;
public:
static std::string UrlRegex();
static std::shared_ptr<CORSProcessor> SharedPtr();
};