mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-29 13:27:59 +03:00
add: Redirect
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
class Response
|
||||
{
|
||||
private:
|
||||
serverListen _listen;
|
||||
std::string _body;
|
||||
std::string _header;
|
||||
Request _request;
|
||||
@@ -62,6 +63,7 @@ public:
|
||||
std::string getErrorPage(int code);
|
||||
std::string getFullURI();
|
||||
|
||||
bool isRedirect(void);
|
||||
bool allowedMethod(std::string &);
|
||||
void setData(Request, ServerConfig *);
|
||||
void setData(Request &, ServerConfig *, location *location);
|
||||
@@ -70,7 +72,7 @@ public:
|
||||
void OpenErrorFile(int code);
|
||||
void initErrorCode(void);
|
||||
void generate();
|
||||
void generate2();
|
||||
void generate2(serverListen &);
|
||||
Response();
|
||||
~Response();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user