Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions include/atomizes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ namespace atomizes
DELETE,
CONNECT,
TRACE,
PATCH
PATCH,
OPTIONS
};

/**
Expand All @@ -74,8 +75,6 @@ namespace atomizes
{
switch (method)
{
case MessageMethod::NONE:
return "NONE";
case MessageMethod::GET:
return "GET";
case MessageMethod::HEAD:
Expand All @@ -92,6 +91,11 @@ namespace atomizes
return "TRACE";
case MessageMethod::PATCH:
return "PATCH";
case MessageMethod::OPTIONS:
return "OPTIONS";
case MessageMethod::NONE:
default:
return "NONE";
}
}

Expand All @@ -118,6 +122,8 @@ namespace atomizes
return MessageMethod::TRACE;
if (method == "PATCH")
return MessageMethod::PATCH;
if (method == "OPTIONS")
return MessageMethod::OPTIONS;

return MessageMethod::NONE;
}
Expand Down