15 lines
412 B
C++
15 lines
412 B
C++
#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();
|
|
}; |