UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IHttpResponse Class Referenceabstract

#include <IHttpResponse.h>

+ Inheritance diagram for IHttpResponse:

Public Member Functions

virtual int32 GetResponseCode () const =0
 
virtual FString GetContentAsString () const =0
 
virtual FUtf8StringView GetContentAsUtf8StringView () const =0
 
virtual ~IHttpResponse ()=default
 
- Public Member Functions inherited from IHttpBase
virtual const FString & GetURL () const =0
 
virtual const FString & GetEffectiveURL () const =0
 
virtual EHttpRequestStatus::Type GetStatus () const =0
 
virtual EHttpFailureReason GetFailureReason () const =0
 
virtual FString GetURLParameter (const FString &ParameterName) const =0
 
virtual FString GetHeader (const FString &HeaderName) const =0
 
virtual TArray< FString > GetAllHeaders () const =0
 
virtual FString GetContentType () const =0
 
virtual uint64 GetContentLength () const =0
 
virtual const TArray< uint8 > & GetContent () const =0
 
virtual ~IHttpBase ()=default
 

Detailed Description

Interface for Http responses that come back after starting an Http request

Constructor & Destructor Documentation

◆ ~IHttpResponse()

virtual IHttpResponse::~IHttpResponse ( )
virtualdefault

Destructor for overrides

Member Function Documentation

◆ GetContentAsString()

virtual FString IHttpResponse::GetContentAsString ( ) const
pure virtual

Returns the payload as a string, assuming the payload is UTF8.

Returns
the payload as a string.

Implemented in FHttpResponseCommon.

◆ GetContentAsUtf8StringView()

virtual FUtf8StringView IHttpResponse::GetContentAsUtf8StringView ( ) const
pure virtual

Returns the payload as a utf8 string view. This does not validate that the response is valid utf8. It is the caller's responsibility, for example, by checking the Content-Type header

Returns
the payload as a utf8 string view.

Implemented in FHttpResponseCommon.

◆ GetResponseCode()

virtual int32 IHttpResponse::GetResponseCode ( ) const
pure virtual

Gets the response code returned by the requested server. See EHttpResponseCodes for known response codes

Returns
the response code.

Implemented in FHttpResponseCommon.


The documentation for this class was generated from the following file: