add: post and delete method

This commit is contained in:
Talyx
2022-02-07 14:17:03 +03:00
parent 40f86e0f67
commit fbaebfb3a2
3 changed files with 179 additions and 85 deletions

View File

@@ -60,13 +60,14 @@ public:
static std::string getReasonPhrase(std::string);
static std::string getReasonPhrase(int);
std::string getErrorPage(int code);
std::string getFullURI(std::string &, std::string &);
std::string getFullURI();
bool allowedMethod(std::string &);
void setData(Request, ServerConfig *);
void setData(Request &, ServerConfig *, location *location);
public:
void OpenResponseFile(const char *path);
void OpenErrorFile(int code);
void initErrorCode(void);
void generate();
void generate2();