1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #include <anna/config/defines.hpp>
11 #include <anna/http/Request.hpp>
16 string http::Request::codeStartLine() const
17 throw(RuntimeException) {
19 throw RuntimeException("URI must have a value", ANNA_FILE_LOCATION);
21 string result(Method::Type::asCString(a_method));
25 return result += getVersion();
28 string http::Request::asString() const
30 string result("http::Request { ");
31 result += Method::asString(a_method);
34 result += " | Version: ";
35 result += getVersion();
36 return result += " }";