Repository: mesos Updated Branches: refs/heads/master feb1f568d -> cc9229612
Added a Method Not Allowed HTTP Response. Review: https://reviews.apache.org/r/36073 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/cc922961 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/cc922961 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/cc922961 Branch: refs/heads/master Commit: cc9229612cc0ca303cfeee51ea19ec29ef276fda Parents: feb1f56 Author: Isabel Jimenez <[email protected]> Authored: Wed Jul 1 14:11:40 2015 -0700 Committer: Benjamin Mahler <[email protected]> Committed: Wed Jul 1 14:11:40 2015 -0700 ---------------------------------------------------------------------- 3rdparty/libprocess/include/process/http.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/cc922961/3rdparty/libprocess/include/process/http.hpp ---------------------------------------------------------------------- diff --git a/3rdparty/libprocess/include/process/http.hpp b/3rdparty/libprocess/include/process/http.hpp index 5d5f3cc..57f3ae5 100644 --- a/3rdparty/libprocess/include/process/http.hpp +++ b/3rdparty/libprocess/include/process/http.hpp @@ -437,6 +437,20 @@ struct NotFound : Response }; +struct MethodNotAllowed : Response +{ + MethodNotAllowed() + { + status = "405 Method Not Allowed"; + } + + explicit MethodNotAllowed(const std::string& body) : Response(body) + { + status = "405 Method Not Allowed"; + } +}; + + struct NotAcceptable : Response { NotAcceptable()
