engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IHttpResponse类 参考abstract

Inteface for Http responses that come back after starting an Http request 更多...

#include <IHttpResponse.h>

+ 类 IHttpResponse 继承关系图:

Public 成员函数

virtual FString GetContentAsString () const =0
 Returns the payload as a string, assuming the payload is UTF8. 更多...
 
virtual int32 GetResponseCode () const =0
 Gets the response code returned by the requested server. 更多...
 
virtual ~IHttpResponse ()=default
 Destructor for overrides
 
- Public 成员函数 继承自 IHttpBase
virtual TArray< FString > GetAllHeaders () const =0
 Return all headers in an array in "Name: Value" format. 更多...
 
virtual const TArray< uint8 > & GetContent () const =0
 Get the content payload of the request or response. 更多...
 
virtual int32 GetContentLength () const =0
 Shortcut to get the Content-Length header value. 更多...
 
virtual FString GetContentType () const =0
 Shortcut to get the Content-Type header value (if available) 更多...
 
virtual FString GetHeader (const FString &HeaderName) const =0
 Gets the value of a header, or empty string if not found. 更多...
 
virtual FString GetURL () const =0
 Get the URL used to send the request. 更多...
 
virtual FString GetURLParameter (const FString &ParameterName) const =0
 Gets an URL parameter. 更多...
 
virtual ~IHttpBase ()=default
 Destructor for overrides
 

详细描述

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

成员函数说明

◆ GetContentAsString()

virtual FString IHttpResponse::GetContentAsString ( ) const
pure virtual

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

返回
the payload as a string.

◆ GetResponseCode()

virtual int32 IHttpResponse::GetResponseCode ( ) const
pure virtual

Gets the response code returned by the requested server.

See EHttpResponseCodes for known response codes

返回
the response code.

该类的文档由以下文件生成: