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