|
|
A Demo Project for the UnrealEngineSDK
|
UCLASS(BlueprintType, Blueprintable) More...
#include <VaRestRequestJSON.h>
Public Member Functions | |
| void | AddTag (FName Tag) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Utility") | |
| virtual void | ApplyURL (const FString &Url, UVaRestJsonObject *&Result, UObject *WorldContextObject, struct FLatentActionInfo LatentInfo) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request", meta = (Latent, LatentInfo = "LatentInfo", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject")) | |
| void | Cancel () |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Response") | |
| virtual void | ExecuteProcessRequest () |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| TArray< FString > | GetAllResponseHeaders () const |
| UFUNCTION(BlueprintPure, Category = "VaRest|Response") | |
| TSharedRef< IHttpRequest, ESPMode::ThreadSafe > | GetHttpRequest () const |
| UVaRestJsonObject * | GetRequestObject () const |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| int32 | GetResponseCode () const |
| UFUNCTION(BlueprintPure, Category = "VaRest|Response") | |
| FString | GetResponseContentAsString (bool bCacheResponseContent=true) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Response") | |
| FString | GetResponseHeader (const FString &HeaderName) |
| UFUNCTION(BlueprintPure, Category = "VaRest|Response") | |
| UVaRestJsonObject * | GetResponseObject () const |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Response") | |
| UVaRestJsonValue * | GetResponseValue () const |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Response") | |
| EVaRestRequestStatus | GetStatus () const |
| UFUNCTION(BlueprintPure, Category = "VaRest|Request") | |
| FString | GetURL () const |
| UFUNCTION(BlueprintPure, Category = "VaRest|Request") | |
| EVaRestRequestVerb | GetVerb () const |
| UFUNCTION(BlueprintPure, Category = "VaRest|Request") | |
| bool | HasTag (FName Tag) const |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Utility") | |
| virtual void | ProcessURL (const FString &Url=TEXT("http://alyamkin.com")) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| int32 | RemoveTag (FName Tag) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Utility") | |
| void | ResetData () |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Utility") | |
| void | ResetRequestData () |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| void | ResetResponseData () |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Response") | |
| void | SetBinaryContentType (const FString &ContentType) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| void | SetBinaryRequestContent (const TArray< uint8 > &Content) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| void | SetContentType (EVaRestRequestContentType ContentType) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| void | SetCustomVerb (FString Verb) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| void | SetHeader (const FString &HeaderName, const FString &HeaderValue) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| void | SetRequestObject (UVaRestJsonObject *JsonObject) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| void | SetResponseObject (UVaRestJsonObject *JsonObject) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Response") | |
| void | SetStringRequestContent (const FString &Content) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| void | SetURL (const FString &Url=TEXT("http://alyamkin.com")) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
| void | SetVerb (EVaRestRequestVerb Verb) |
| UFUNCTION(BlueprintCallable, Category = "VaRest|Request") | |
Public Attributes | |
| bool | bIsValidJsonResponse |
| UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "VaRest|Response") | |
| FOnRequestComplete | OnRequestComplete |
| UPROPERTY(BlueprintAssignable, Category = "VaRest|Event") | |
| FOnRequestFail | OnRequestFail |
| UPROPERTY(BlueprintAssignable, Category = "VaRest|Event") | |
| FOnStaticRequestComplete | OnStaticRequestComplete |
| FOnStaticRequestFail | OnStaticRequestFail |
| FString | ResponseContent |
| UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "VaRest|Response") | |
| int32 | ResponseSize |
| UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "VaRest|Response") | |
Protected Member Functions | |
| void | ProcessRequest () |
Protected Attributes | |
| FString | BinaryContentType |
| FVaRestLatentAction< UVaRestJsonObject * > * | ContinueAction |
| FString | CustomVerb |
| TSharedRef< IHttpRequest, ESPMode::ThreadSafe > | HttpRequest = FHttpModule::Get().CreateRequest() |
| TArray< uint8 > | RequestBytes |
| EVaRestRequestContentType | RequestContentType |
| TMap< FString, FString > | RequestHeaders |
| UVaRestJsonObject * | RequestJsonObj |
| UPROPERTY() | |
| EVaRestRequestVerb | RequestVerb |
| int32 | ResponseCode |
| TMap< FString, FString > | ResponseHeaders |
| UVaRestJsonObject * | ResponseJsonObj |
| UPROPERTY() | |
| UVaRestJsonValue * | ResponseJsonValue |
| UPROPERTY() | |
| FString | StringRequestContent |
| TArray< FName > | Tags |
Static Protected Attributes | |
| static FString | DeprecatedResponseString |
Private Member Functions | |
| GENERATED_UCLASS_BODY () | |
| void | OnProcessRequestComplete (FHttpRequestPtr Request, FHttpResponsePtr Response, bool bWasSuccessful) |
UCLASS(BlueprintType, Blueprintable)
General helper class http requests via blueprints
Definition at line 90 of file VaRestRequestJSON.h.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
Add tag to this request
Definition at line 566 of file VaRestRequestJSON.cpp.
|
virtualBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request", meta = (Latent, LatentInfo = "LatentInfo", HidePin = "WorldContextObject", DefaultToSelf = "WorldContextObject"))
Open URL in latent mode
Definition at line 251 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
Cancel latent response waiting
Definition at line 135 of file VaRestRequestJSON.cpp.
|
virtualBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Check URL and execute process request
Definition at line 279 of file VaRestRequestJSON.cpp.
|
private |
|
BlueprintPure |
UFUNCTION(BlueprintPure, Category = "VaRest|Response")
Get list of all response headers
Definition at line 221 of file VaRestRequestJSON.cpp.
|
inline |
Returns reference to internal request object
Definition at line 454 of file VaRestRequestJSON.h.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Get the Request Json object
Definition at line 145 of file VaRestRequestJSON.cpp.
|
BlueprintPure |
UFUNCTION(BlueprintPure, Category = "VaRest|Response")
Get the response code of the last query
Definition at line 203 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
Get request response stored as a string
| bCacheResponseContent | - Set true if you plan to use it few times to prevent deserialization each time |
Definition at line 587 of file VaRestRequestJSON.cpp.
|
BlueprintPure |
UFUNCTION(BlueprintPure, Category = "VaRest|Response")
Get value of desired response header
Definition at line 208 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
Get the Response Json object
Definition at line 162 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
Get the Response Json value
Definition at line 179 of file VaRestRequestJSON.cpp.
|
BlueprintPure |
UFUNCTION(BlueprintPure, Category = "VaRest|Request")
Get status of http request
Definition at line 198 of file VaRestRequestJSON.cpp.
|
BlueprintPure |
UFUNCTION(BlueprintPure, Category = "VaRest|Request")
Get url of http request
Definition at line 188 of file VaRestRequestJSON.cpp.
|
BlueprintPure |
UFUNCTION(BlueprintPure, Category = "VaRest|Request")
Get verb to the request
Definition at line 193 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
See if this request contains the supplied tag
Definition at line 579 of file VaRestRequestJSON.cpp.
|
private |
Internal bind function for the IHTTPRequest::OnProcessRequestCompleted() event
Definition at line 468 of file VaRestRequestJSON.cpp.
|
protected |
Apply current internal setup to request and process it
Definition at line 290 of file VaRestRequestJSON.cpp.
|
virtualBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Open URL with current setup
Definition at line 245 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
Remove tag from this request
Definition at line 574 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Utility")
Reset all internal saved data
Definition at line 81 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Reset saved request data
Definition at line 87 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
Reset saved response data
Definition at line 105 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Set content type of the request for binary post data
Definition at line 58 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Set content of the request for binary post data
Definition at line 63 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Set content type to the request. If you're using the x-www-form-urlencoded, params/constaints should be defined as key=ValueString pairs from Json data
Definition at line 53 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Set custom verb to the request
Definition at line 48 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Sets optional header info
Definition at line 73 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Set the Request Json object
Definition at line 151 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Response")
Set the Response Json object
Definition at line 168 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Set content of the request as a plain string
Definition at line 68 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Setting request URL
Definition at line 234 of file VaRestRequestJSON.cpp.
|
BlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VaRest|Request")
Set verb to the request
Definition at line 43 of file VaRestRequestJSON.cpp.
|
protected |
Definition at line 413 of file VaRestRequestJSON.h.
|
BlueprintReadOnlyVisibleAnywhere |
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "VaRest|Response")
Is the response valid JSON?
Definition at line 396 of file VaRestRequestJSON.h.
|
protected |
Latent action helper
Definition at line 404 of file VaRestRequestJSON.h.
|
protected |
Custom verb that will be used with RequestContentType == CUSTOM
Definition at line 447 of file VaRestRequestJSON.h.
|
staticprotected |
Default value for deprecated ResponseContent variable
Definition at line 400 of file VaRestRequestJSON.h.
|
protected |
Request we're currently processing
Definition at line 450 of file VaRestRequestJSON.h.
|
BlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "VaRest|Event")
Event occured when the request has been completed
Definition at line 311 of file VaRestRequestJSON.h.
|
BlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "VaRest|Event")
Event occured when the request wasn't successfull
Definition at line 318 of file VaRestRequestJSON.h.
| FOnStaticRequestComplete UVaRestRequestJSON::OnStaticRequestComplete |
Event occured when the request has been completed
Definition at line 321 of file VaRestRequestJSON.h.
| FOnStaticRequestFail UVaRestRequestJSON::OnStaticRequestFail |
Event occured when the request wasn't successfull
Definition at line 324 of file VaRestRequestJSON.h.
|
protected |
Definition at line 412 of file VaRestRequestJSON.h.
|
protected |
Content type to be applied for request
Definition at line 435 of file VaRestRequestJSON.h.
|
protected |
Mapping of header section to values. Used to generate final header string for request
Definition at line 438 of file VaRestRequestJSON.h.
|
protected |
UPROPERTY()
Internal request data stored as JSON
Definition at line 410 of file VaRestRequestJSON.h.
|
protected |
Verb for making request (GET,POST,etc)
Definition at line 432 of file VaRestRequestJSON.h.
|
protected |
Http Response code
Definition at line 444 of file VaRestRequestJSON.h.
|
BlueprintReadOnlyVisibleAnywhere |
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "VaRest|Response")
DEPRECATED: Please use GetResponseContentAsString() instead
Definition at line 388 of file VaRestRequestJSON.h.
|
protected |
Cached key/value header pairs. Parsed once request completes
Definition at line 441 of file VaRestRequestJSON.h.
|
protected |
|
protected |
|
BlueprintReadOnlyVisibleAnywhere |
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "VaRest|Response")
Response size
Definition at line 380 of file VaRestRequestJSON.h.
|
protected |
Used for special cases when used wants to have plain string data in request. Attn.! Content-type x-www-form-urlencoded only.
Definition at line 417 of file VaRestRequestJSON.h.
|
protected |
Array of tags that can be used for grouping and categorizing
Definition at line 357 of file VaRestRequestJSON.h.