cesium-native 0.43.0
Loading...
Searching...
No Matches
IAssetResponse.h
1#pragma once
2
3#include "HttpHeaders.h"
4#include "Library.h"
5
6#include <cstddef>
7#include <cstdint>
8#include <map>
9#include <span>
10#include <string>
11
12namespace CesiumAsync {
13
17class CESIUMASYNC_API IAssetResponse {
18public:
22 virtual ~IAssetResponse() = default;
23
27 virtual uint16_t statusCode() const = 0;
28
32 virtual std::string contentType() const = 0;
33
37 virtual const HttpHeaders& headers() const = 0;
38
42 virtual std::span<const std::byte> data() const = 0;
43};
44
45} // namespace CesiumAsync
A completed response for a 3D Tiles asset.
virtual const HttpHeaders & headers() const =0
Returns the HTTP headers of the response.
virtual std::span< const std::byte > data() const =0
Returns the data of this response.
virtual ~IAssetResponse()=default
Default destructor.
virtual std::string contentType() const =0
Returns the HTTP content type.
virtual uint16_t statusCode() const =0
Returns the HTTP response code.
Classes that support asynchronous operations.
std::map< std::string, std::string, CaseInsensitiveCompare > HttpHeaders
Http Headers that maps case-insensitive header key with header value.
Definition HttpHeaders.h:25