Very basic implementations of a few steamhttp functions.

merge-requests/32/head
Mr_Goldberg 2020-06-25 11:26:19 -04:00
parent d531e27ac0
commit 833510fbf1
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278
1 changed files with 14 additions and 3 deletions

View File

@ -116,7 +116,7 @@ bool Steam_HTTP::SetHTTPRequestGetOrPostParameter( HTTPRequestHandle hRequest, c
// header and only do a local cache lookup rather than sending any actual remote request. // header and only do a local cache lookup rather than sending any actual remote request.
bool Steam_HTTP::SendHTTPRequest( HTTPRequestHandle hRequest, SteamAPICall_t *pCallHandle ) bool Steam_HTTP::SendHTTPRequest( HTTPRequestHandle hRequest, SteamAPICall_t *pCallHandle )
{ {
PRINT_DEBUG("SendHTTPRequest\n"); PRINT_DEBUG("SendHTTPRequest %u %p\n", hRequest, pCallHandle);
Steam_Http_Request *request = get_request(hRequest); Steam_Http_Request *request = get_request(hRequest);
if (!request) { if (!request) {
return false; return false;
@ -276,9 +276,14 @@ bool Steam_HTTP::GetHTTPDownloadProgressPct( HTTPRequestHandle hRequest, float *
bool Steam_HTTP::SetHTTPRequestRawPostBody( HTTPRequestHandle hRequest, const char *pchContentType, uint8 *pubBody, uint32 unBodyLen ) bool Steam_HTTP::SetHTTPRequestRawPostBody( HTTPRequestHandle hRequest, const char *pchContentType, uint8 *pubBody, uint32 unBodyLen )
{ {
PRINT_DEBUG("SetHTTPRequestRawPostBody\n"); PRINT_DEBUG("SetHTTPRequestRawPostBody\n");
Steam_Http_Request *request = get_request(hRequest);
if (!request) {
return false; return false;
} }
return true;
}
// Creates a cookie container handle which you must later free with ReleaseCookieContainer(). If bAllowResponsesToModify=true // Creates a cookie container handle which you must later free with ReleaseCookieContainer(). If bAllowResponsesToModify=true
// than any response to your requests using this cookie container may add new cookies which may be transmitted with // than any response to your requests using this cookie container may add new cookies which may be transmitted with
@ -360,5 +365,11 @@ bool Steam_HTTP::SetHTTPRequestAbsoluteTimeoutMS( HTTPRequestHandle hRequest, ui
bool Steam_HTTP::GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest, bool *pbWasTimedOut ) bool Steam_HTTP::GetHTTPRequestWasTimedOut( HTTPRequestHandle hRequest, bool *pbWasTimedOut )
{ {
PRINT_DEBUG("GetHTTPRequestWasTimedOut\n"); PRINT_DEBUG("GetHTTPRequestWasTimedOut\n");
Steam_Http_Request *request = get_request(hRequest);
if (!request) {
return false; return false;
} }
if (pbWasTimedOut) *pbWasTimedOut = false;
return true;
}