forked from weirdhome

Fork of HTTPClient by David Smart

Revision:
38:2ef07232f65c
Parent:
37:74c1c4527f70
Child:
46:01970be2f08a
diff -r 74c1c4527f70 -r 2ef07232f65c HTTPClient.h
--- a/HTTPClient.h	Sat Dec 17 15:19:55 2016 +0000
+++ b/HTTPClient.h	Thu Dec 29 20:14:53 2016 +0000
@@ -60,6 +60,15 @@
     HTTPClient();
     ~HTTPClient();
 
+    /// Get the text form of the error number
+    /// 
+    /// Gets a pointer to a text message that described the result code.
+    ///
+    /// @param[in] res is the HTTPResult code to translate to text.
+    /// @returns a pointer to a text message.
+    ///
+    static const char * GetErrorMessage(HTTPResult res);
+
     /**
     Provides a basic authentification feature (Base64 encoded username and password)
     Pass two NULL pointers to switch back to no authentication