初始提交: UE5.3项目基础框架
This commit is contained in:
45
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumAsync/IAssetRequest.h
vendored
Normal file
45
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumAsync/IAssetRequest.h
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
|
||||
#include "HttpHeaders.h"
|
||||
#include "Library.h"
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
namespace CesiumAsync {
|
||||
|
||||
class IAssetResponse;
|
||||
|
||||
/**
|
||||
* @brief An asynchronous request for an asset, usually a file
|
||||
* downloaded via HTTP.
|
||||
*/
|
||||
class CESIUMASYNC_API IAssetRequest {
|
||||
public:
|
||||
virtual ~IAssetRequest() = default;
|
||||
|
||||
/**
|
||||
* @brief Gets the request's method. This method may be called from any
|
||||
* thread.
|
||||
*/
|
||||
virtual const std::string& method() const = 0;
|
||||
|
||||
/**
|
||||
* @brief Gets the requested URL. This method may be called from any thread.
|
||||
*/
|
||||
virtual const std::string& url() const = 0;
|
||||
|
||||
/**
|
||||
* @brief Gets the request's header. This method may be called from any
|
||||
* thread.
|
||||
*/
|
||||
virtual const HttpHeaders& headers() const = 0;
|
||||
|
||||
/**
|
||||
* @brief Gets the response, or nullptr if the request is still in progress.
|
||||
* This method may be called from any thread.
|
||||
*/
|
||||
virtual const IAssetResponse* response() const = 0;
|
||||
};
|
||||
|
||||
} // namespace CesiumAsync
|
||||
Reference in New Issue
Block a user