You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ti...@apache.org on 2015/02/23 16:33:40 UTC
mesos git commit: Added 403 forbidden to the set of http Responses.
Repository: mesos
Updated Branches:
refs/heads/master 550dd7922 -> 2bf284fce
Added 403 forbidden to the set of http Responses.
Adds a class representing the "403 Forbidden" http response message.
Review: https://reviews.apache.org/r/30994
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/2bf284fc
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/2bf284fc
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/2bf284fc
Branch: refs/heads/master
Commit: 2bf284fce8a4ee4076f3ee9fb65e0ff164ec2eb8
Parents: 550dd79
Author: Alexander Rojas <al...@mesosphere.io>
Authored: Mon Feb 23 16:18:28 2015 +0100
Committer: Till Toenshoff <to...@me.com>
Committed: Mon Feb 23 16:18:28 2015 +0100
----------------------------------------------------------------------
3rdparty/libprocess/include/process/http.hpp | 14 ++++++++++++++
1 file changed, 14 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/2bf284fc/3rdparty/libprocess/include/process/http.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/http.hpp b/3rdparty/libprocess/include/process/http.hpp
index c3911ab..523ef7e 100644
--- a/3rdparty/libprocess/include/process/http.hpp
+++ b/3rdparty/libprocess/include/process/http.hpp
@@ -271,6 +271,20 @@ struct BadRequest : Response
};
+struct Forbidden : Response
+{
+ Forbidden()
+ {
+ status = "403 Forbidden";
+ }
+
+ explicit Forbidden(const std::string& body) : Response(body)
+ {
+ status = "403 Forbidden";
+ }
+};
+
+
struct NotFound : Response
{
NotFound()