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.
Return all headers in an array in "Name: Value" format.
在 FHttpRequestAdapterBase 内被实现.
|
pure virtual |
Get the content payload of the request or response.
| Content | - array that will be filled with the content. |
在 FHttpRequestAdapterBase 内被实现.
|
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.
在 FHttpRequestAdapterBase 内被实现.
|
pure virtual |
Shortcut to get the Content-Type header value (if available)
在 FHttpRequestAdapterBase 内被实现.
Gets the value of a header, or empty string if not found.
| HeaderName | - name of the header to set. |
在 FHttpRequestAdapterBase 内被实现.
|
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. |
在 FHttpRequestAdapterBase 内被实现.