diff options
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index d0b9e1e..eb88f62 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -80,6 +80,19 @@ public: bool Enabled; std::string Name; }; +#ifdef CMAKE_BUILD_WITH_CMAKE + enum HTTPMethod { + HTTP_GET, + HTTP_POST + }; + + /** + * Perform an HTTP request. + */ + static int HTTPRequest(std::string url, HTTPMethod method, + std::string& response, + std::string fields = "", int timeout = 10); +#endif /** Get a testing part id from its string name. Returns PartCount if the string does not name a valid part. */ |