From: Francis Dupont Date: Fri, 13 May 2022 17:04:11 +0000 (+0200) Subject: [#1263] Applied lib/http patch X-Git-Tag: Kea-2.1.6~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba6fce3d7590d1d8a99fe93a26e82edeb588aae5;p=thirdparty%2Fkea.git [#1263] Applied lib/http patch --- diff --git a/src/lib/http/response.h b/src/lib/http/response.h index bb11309126..26b1f8298f 100644 --- a/src/lib/http/response.h +++ b/src/lib/http/response.h @@ -181,6 +181,12 @@ public: /// @return true if the status code indicates server error. static bool isServerError(const HttpStatusCode& status_code); + /// @brief Convenience method converting status code to numeric value. + /// + /// @param status_code Status code represented as enum. + /// @return Numeric representation of the status code. + static uint16_t statusCodeToNumber(const HttpStatusCode& status_code); + /// @brief Converts status code to string. /// /// @param status_code HTTP status code. @@ -206,12 +212,6 @@ protected: /// @return Current time formatted as required by RFC 1123. virtual std::string getDateHeaderValue() const; - /// @brief Convenience method converting status code to numeric value. - /// - /// @param status_code Status code represented as enum. - /// @return Numeric representation of the status code. - static uint16_t statusCodeToNumber(const HttpStatusCode& status_code); - private: /// @brief Sets generic body for the given status code.