]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1263] Applied lib/http patch
authorFrancis Dupont <fdupont@isc.org>
Fri, 13 May 2022 17:04:11 +0000 (19:04 +0200)
committerFrancis Dupont <fdupont@isc.org>
Fri, 13 May 2022 17:04:11 +0000 (19:04 +0200)
src/lib/http/response.h

index bb11309126778eca3d7713384d034f7a0eae0a8f..26b1f8298feb3a4bd461016e4eab7ffec28fc658 100644 (file)
@@ -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.