Started to implement the : static const char *httpStatusToString(HTTP_CODE c) method
This commit is contained in:
parent
bf05086381
commit
bf4caea902
@ -137,6 +137,17 @@ class HttpConstants
|
||||
}
|
||||
}
|
||||
|
||||
static const char *httpStatusToString(HTTP_CODE c)
|
||||
{
|
||||
switch(c)
|
||||
{
|
||||
case HTTP_CODE_PARTIAL_CONTENT:
|
||||
return HTTPCONSTANTS_STRING("206 Partial Content");
|
||||
break;
|
||||
default:
|
||||
return HTTPCONSTANTS_STRING("200 OK");
|
||||
}
|
||||
}
|
||||
protected:
|
||||
private:
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user