add support for OPTIONS http method
This commit is contained in:
@@ -53,6 +53,7 @@ public:
|
||||
static constexpr const wchar_t * accept = L"Accept";
|
||||
static constexpr const wchar_t * accept_language = L"Accept-Language";
|
||||
static constexpr const wchar_t * authorization = L"Authorization";
|
||||
static constexpr const wchar_t * allow = L"Allow";
|
||||
|
||||
/*
|
||||
* headers' names lower case
|
||||
@@ -92,6 +93,7 @@ public:
|
||||
|
||||
|
||||
static const int status_200_ok = 200;
|
||||
static const int status_204_no_content = 204;
|
||||
static const int status_300_multiple_choices = 300;
|
||||
static const int status_301_moved_permanently = 301;
|
||||
static const int status_302_found = 302;
|
||||
@@ -106,6 +108,7 @@ public:
|
||||
|
||||
|
||||
static constexpr const wchar_t * str_status_200 = L"OK";
|
||||
static constexpr const wchar_t * str_status_204 = L"No Content";
|
||||
static constexpr const wchar_t * str_status_300 = L"Multiple Choices";
|
||||
static constexpr const wchar_t * str_status_301 = L"Moved Permanently";
|
||||
static constexpr const wchar_t * str_status_302 = L"Found";
|
||||
@@ -134,6 +137,7 @@ protected:
|
||||
|
||||
static constexpr StatusIntStringMapHelper status_int_string_map[] = {
|
||||
{status_200_ok, str_status_200},
|
||||
{status_204_no_content, str_status_204},
|
||||
{status_300_multiple_choices, str_status_300},
|
||||
{status_301_moved_permanently, str_status_301},
|
||||
{status_302_found, str_status_302},
|
||||
|
Reference in New Issue
Block a user