mirror of
https://github.com/3lswear/webserv.git
synced 2025-10-28 21:07:59 +03:00
static func getReasonPhrase()
This commit is contained in:
@@ -94,6 +94,8 @@ void Response::methodGet(void)
|
||||
|
||||
//-------------------------------------------------GET/SET---------------------------------------
|
||||
|
||||
std::map<std::string, std::string> Response::_errorCode;
|
||||
|
||||
void Response::initErrorCode(void)
|
||||
{
|
||||
_errorCode["100"] = "Continue";
|
||||
|
||||
@@ -14,7 +14,7 @@ private:
|
||||
ServerConfig *_config;
|
||||
|
||||
private:
|
||||
std::map<std::string, std::string> _errorCode;
|
||||
static std::map<std::string, std::string> _errorCode;
|
||||
|
||||
private:
|
||||
void methodGet(void);
|
||||
@@ -25,15 +25,15 @@ private:
|
||||
public:
|
||||
std::string getClient(void);
|
||||
std::string getBody(void);
|
||||
std::string getReasonPhrase(std::string);
|
||||
std::string getReasonPhrase(int);
|
||||
static std::string getReasonPhrase(std::string);
|
||||
static std::string getReasonPhrase(int);
|
||||
std::string getErrorPage(int code);
|
||||
|
||||
|
||||
void setData(Request, ServerConfig *);
|
||||
public:
|
||||
void OpenResponseFile(const char *path);
|
||||
void initErrorCode(void);
|
||||
void initErrorCode(void);
|
||||
void generate();
|
||||
Response();
|
||||
~Response();
|
||||
|
||||
Reference in New Issue
Block a user