初始提交: UE5.3项目基础框架
This commit is contained in:
45
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumAsync/IAssetResponse.h
vendored
Normal file
45
Plugins/CesiumForUnreal/Source/ThirdParty/include/CesiumAsync/IAssetResponse.h
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
|
||||
#include "HttpHeaders.h"
|
||||
#include "Library.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
#include <span>
|
||||
#include <string>
|
||||
|
||||
namespace CesiumAsync {
|
||||
|
||||
/**
|
||||
* @brief A completed response for a 3D Tiles asset.
|
||||
*/
|
||||
class CESIUMASYNC_API IAssetResponse {
|
||||
public:
|
||||
/**
|
||||
* @brief Default destructor
|
||||
*/
|
||||
virtual ~IAssetResponse() = default;
|
||||
|
||||
/**
|
||||
* @brief Returns the HTTP response code.
|
||||
*/
|
||||
virtual uint16_t statusCode() const = 0;
|
||||
|
||||
/**
|
||||
* @brief Returns the HTTP content type
|
||||
*/
|
||||
virtual std::string contentType() const = 0;
|
||||
|
||||
/**
|
||||
* @brief Returns the HTTP headers of the response
|
||||
*/
|
||||
virtual const HttpHeaders& headers() const = 0;
|
||||
|
||||
/**
|
||||
* @brief Returns the data of this response
|
||||
*/
|
||||
virtual std::span<const std::byte> data() const = 0;
|
||||
};
|
||||
|
||||
} // namespace CesiumAsync
|
||||
Reference in New Issue
Block a user