update cpp-ue4 samples (#10194)

This commit is contained in:
William Cheng
2021-08-19 12:24:54 +08:00
committed by GitHub
parent 7a64d5912c
commit 67cba32d3a
31 changed files with 271 additions and 156 deletions

View File

@@ -15,7 +15,7 @@
#include "CoreMinimal.h"
#include "OpenAPIBaseModel.h"
namespace OpenAPI
namespace OpenAPI
{
class OPENAPI_API OpenAPIUserApi
@@ -24,16 +24,16 @@ public:
OpenAPIUserApi();
~OpenAPIUserApi();
/* Sets the URL Endpoint.
/* Sets the URL Endpoint.
* Note: several fallback endpoints can be configured in request retry policies, see Request::SetShouldRetry */
void SetURL(const FString& Url);
/* Adds global header params to all requests */
void AddHeaderParam(const FString& Key, const FString& Value);
void ClearHeaderParams();
/* Sets the retry manager to the user-defined retry manager. User must manage the lifetime of the retry manager.
* If no retry manager is specified and a request needs retries, a default retry manager will be used.
* If no retry manager is specified and a request needs retries, a default retry manager will be used.
* See also: Request::SetShouldRetry */
void SetHttpRetryManager(FHttpRetrySystem::FManager& RetryManager);
FHttpRetrySystem::FManager& GetHttpRetryManager();
@@ -92,5 +92,5 @@ private:
mutable FHttpRetrySystem::FManager* RetryManager = nullptr;
mutable TUniquePtr<HttpRetryManager> DefaultRetryManager;
};
}