diff options
Diffstat (limited to 'protocols/Steam/src/http_request.h')
-rw-r--r-- | protocols/Steam/src/http_request.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h index 126aa857f0..3e91209907 100644 --- a/protocols/Steam/src/http_request.h +++ b/protocols/Steam/src/http_request.h @@ -152,5 +152,12 @@ public: };
+bool __forceinline ResponseHttpOk(const NETLIBHTTPREQUEST *response) {
+ return (response && response->pData && (response->resultCode == HTTP_CODE_OK));
+}
+
+bool __forceinline CheckResponse(const NETLIBHTTPREQUEST *response) {
+ return (response && response->pData);
+}
#endif //_HTTP_REQUEST_H_
\ No newline at end of file |