LootLocker Unreal SDK 10.4.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
LootLockerHTTPExecutionQueueItem.h
Go to the documentation of this file.
1// Copyright (c) 2021 LootLocker
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Interfaces/IHttpRequest.h"
9
15{
17 None = 0,
18
21
24
27
33
39
45};
46
54struct LOOTLOCKERSDK_API FLootLockerHTTPExecutionQueueItem
55{
58
64 TSharedPtr<IHttpRequest, ESPMode::ThreadSafe> HttpRequest;
65
70 double RequestStartTime = 0.0;
71
77 FDateTime RetryAfter = FDateTime(0);
78
83 bool bIsWaitingForSessionRefresh = false;
84
89 bool bDone = false;
90
93
100 {
101 if (HttpRequest.IsValid())
102 {
103 HttpRequest->CancelRequest();
104 HttpRequest.Reset();
105 }
106 }
107};
ELootLockerHTTPExecutionQueueProcessingResult
Outcome codes returned by the HTTP execution queue's per-tick processing loop.
Definition LootLockerHTTPExecutionQueueItem.h:15
@ ShouldBeRetried
The request failed with a retryable error (e.g.
@ NeedsSessionRefresh
The server returned a 401/403 that can potentially be resolved by refreshing the player session.
@ WaitForNextTick
The item is still in-flight; check again next tick.
@ None
No determination made (initial / sentinel value).
@ Completed_Failed
The HTTP exchange completed and returned a failure response.
@ Completed_TimedOut
The request timed out waiting for a server response or for a session-refresh handshake to complete.
@ Completed_Success
The HTTP exchange completed and returned a success response.
Pairs a pending FLootLockerHTTPRequestData with its active IHttpRequest handle.
Definition LootLockerHTTPExecutionQueueItem.h:55
void AbortRequest()
Cancels the in-flight IHttpRequest and releases the shared pointer.
Definition LootLockerHTTPExecutionQueueItem.h:99
FLootLockerResponse Response
The final response.
Definition LootLockerHTTPExecutionQueueItem.h:92
TSharedPtr< IHttpRequest, ESPMode::ThreadSafe > HttpRequest
The underlying Unreal HTTP request object.
Definition LootLockerHTTPExecutionQueueItem.h:64
FLootLockerHTTPRequestData RequestData
The logical request (endpoint, verb, body, listeners, retry count, …).
Definition LootLockerHTTPExecutionQueueItem.h:57
Captures everything needed to dispatch — and later retry — a single SDK HTTP request.
Definition LootLockerHTTPRequestData.h:15
Base response struct — every SDK callback receives a struct that derives from this.
Definition LootLockerResponse.h:19