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

Base interface for Http Requests and Responses. 更多...

#include <IHttpBase.h>

+ 类 IHttpBase 继承关系图:

Public 成员函数

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
 

详细描述

Base interface for Http Requests and Responses.

成员函数说明

◆ GetAllHeaders()

virtual TArray< FString > IHttpBase::GetAllHeaders ( ) const
pure virtual

Return all headers in an array in "Name: Value" format.

返回
the header array of strings

在 FHttpRequestAdapterBase 内被实现.

◆ GetContent()

virtual const TArray< uint8 > & IHttpBase::GetContent ( ) const
pure virtual

Get the content payload of the request or response.

参数
Content- array that will be filled with the content.

在 FHttpRequestAdapterBase 内被实现.

◆ GetContentLength()

virtual int32 IHttpBase::GetContentLength ( ) const
pure virtual

Shortcut to get the Content-Length header value.

Will not always return non-zero. If you want the real length of the payload, get the payload and check it's length.

返回
the content length (if available)

在 FHttpRequestAdapterBase 内被实现.

◆ GetContentType()

virtual FString IHttpBase::GetContentType ( ) const
pure virtual

Shortcut to get the Content-Type header value (if available)

返回
the content type.

在 FHttpRequestAdapterBase 内被实现.

◆ GetHeader()

virtual FString IHttpBase::GetHeader ( const FString &  HeaderName) const
pure virtual

Gets the value of a header, or empty string if not found.

参数
HeaderName- name of the header to set.

在 FHttpRequestAdapterBase 内被实现.

◆ GetURL()

virtual FString IHttpBase::GetURL ( ) const
pure virtual

Get the URL used to send the request.

返回
the URL string.

在 FHttpRequestAdapterBase 内被实现.

◆ GetURLParameter()

virtual FString IHttpBase::GetURLParameter ( const FString &  ParameterName) const
pure virtual

Gets an URL parameter.

expected format is ?Key=Value&Key=Value... If that format is not used, this function will not work.

参数
ParameterName- the parameter to request.
返回
the parameter value string.

在 FHttpRequestAdapterBase 内被实现.


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