![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <HttpTests.h>
Public Member Functions | |
| FHttpTest (const FString &InVerb, const FString &InPayload, const FString &InUrl, int32 InIterations) | |
| void | Run (void) |
| void | RequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, bool bSucceeded) |
Test an Http request to a specified endpoint Url
| FHttpTest::FHttpTest | ( | const FString & | InVerb, |
| const FString & | InPayload, | ||
| const FString & | InUrl, | ||
| int32 | InIterations | ||
| ) |
Constructor
| Verb | - verb to use for request (GET,POST,DELETE,etc) |
| Payload | - optional payload string |
| Url | - url address to connect to |
| InIterations | - total test iterations to run |
| void FHttpTest::RequestComplete | ( | FHttpRequestPtr | HttpRequest, |
| FHttpResponsePtr | HttpResponse, | ||
| bool | bSucceeded | ||
| ) |
Delegate called when the request completes
| HttpRequest | - object that started/processed the request |
| HttpResponse | - optional response object if request completed |
| bSucceeded | - true if Url connection was made and response was received |
Kick off the Http request for the test and wait for delegate to be called