95 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
99 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
100 void SetCustomVerb(FString Verb);
104 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
108 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
109 void SetBinaryContentType(const FString& ContentType);
112 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
113 void SetBinaryRequestContent(const TArray<uint8>& Content);
116 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
117 void SetStringRequestContent(const FString& Content);
120 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
121 void SetHeader(const FString& HeaderName, const FString& HeaderValue);
127 UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
131 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
132 void ResetRequestData();
135 UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
136 void ResetResponseData();
139 UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
146 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
150 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
154 UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
158 UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
162 UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
169 UFUNCTION(BlueprintPure, Category = "VaRest|Request")
170 FString GetURL() const;
173 UFUNCTION(BlueprintPure, Category = "VaRest|Request")
177 UFUNCTION(BlueprintPure, Category = "VaRest|Request")
181 UFUNCTION(BlueprintPure, Category = "VaRest|Response")
182 int32 GetResponseCode() const;
185 UFUNCTION(BlueprintPure, Category = "VaRest|Response")
186 FString GetResponseHeader(const FString& HeaderName);
189 UFUNCTION(BlueprintPure, Category = "VaRest|Response")
190 TArray<FString> GetAllResponseHeaders() const;
197 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
198 void SetURL(const FString& Url = TEXT("http:
201 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
202 virtual
void ProcessURL(const FString& Url = TEXT("http:
205 UFUNCTION(BlueprintCallable, Category = "VaRest|Request", meta = (Latent, LatentInfo = "LatentInfo", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject"))
206 virtual
void ApplyURL(const FString& Url,
UVaRestJsonObject*& Result,
UObject* WorldContextObject, struct FLatentActionInfo LatentInfo);
209 UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
210 virtual
void ExecuteProcessRequest();
214 void ProcessRequest();
221 void OnProcessRequestComplete(FHttpRequestPtr Request, FHttpResponsePtr Response,
bool bWasSuccessful);
225 UPROPERTY(BlueprintAssignable, Category = "VaRest|
Event")
226 FOnRequestComplete OnRequestComplete;
229 UPROPERTY(BlueprintAssignable, Category = "VaRest|
Event")
230 FOnRequestFail OnRequestFail;
233 FOnStaticRequestComplete OnStaticRequestComplete;
236 FOnStaticRequestFail OnStaticRequestFail;
243 UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
244 void AddTag(FName Tag);
251 UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
252 int32 RemoveTag(FName Tag);
255 UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
256 bool HasTag(FName Tag) const;
270 UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
271 FString GetResponseContentAsString(
bool bCacheResponseContent = true);
275 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "VaRest|Response")
279 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "VaRest|Response")
280 FString ResponseContent;
283 UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "VaRest|Response")
284 bool bIsValidJsonResponse;
288 static FString DeprecatedResponseString;
298 TArray<uint8> RequestBytes;
299 FString BinaryContentType;
303 FString StringRequestContent;
320 TMap<FString, FString> RequestHeaders;
323 TMap<FString, FString> ResponseHeaders;
332 TSharedRef<IHttpRequest, ESPMode::ThreadSafe> HttpRequest = FHttpModule::Get().CreateRequest();
336 TSharedRef<IHttpRequest, ESPMode::ThreadSafe> GetHttpRequest()
const {
return HttpRequest; };