Jan Schlicht created MESOS-5300:
-----------------------------------
Summary: Make Request::method strongly typed
Key: MESOS-5300
URL: https://issues.apache.org/jira/browse/MESOS-5300
Project: Mesos
Issue Type: Improvement
Components: libprocess
Reporter: Jan Schlicht
Every HTTP request has a "method" (sometimes also called "verb") that indicate
the desired action. Libprocess uses a string in {{process::http::Request}} to
represent this "method". An enumeration would be a better fit for this because
# The possible methods are defined by the HTTP standard, so there's only a
fixed amount of them
# Functions that need to check for the used request method no longer have to
use string comparisons and could also use switches instead of if-clauses if
they need to dispatch based on the method.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)