An implementation of IAssetAccessor
that can make network and local requests to a variety of servers using libcurl.
More...
#include <CesiumCurl/CurlAssetAccessor.h>
|
typedef std::pair< std::string, std::string > | THeader |
| An HTTP header represented as a key/value pair.
|
|
An implementation of IAssetAccessor
that can make network and local requests to a variety of servers using libcurl.
Definition at line 89 of file CurlAssetAccessor.h.
◆ CurlAssetAccessor()
Constructs a new instance.
- Parameters
-
options | The options with which to construct this instance. |
◆ get()
Starts a new request for the asset with the given URL. The request proceeds asynchronously without blocking the calling thread.
- Parameters
-
asyncSystem | The async system used to do work in threads. |
url | The URL of the asset. |
headers | The headers to include in the request. |
- Returns
- The in-progress asset request.
Implements CesiumAsync::IAssetAccessor.
◆ request()
Starts a new request to the given URL, using the provided HTTP verb and the provided content payload.The request proceeds asynchronously without blocking the calling thread.
- Parameters
-
asyncSystem | The async system used to do work in threads. |
verb | The HTTP verb to use, such as "POST" or "PATCH". |
url | The URL of the asset. |
headers | The headers to include in the request. |
contentPayload | The payload data to include in the request. |
- Returns
- The in-progress asset request.
Implements CesiumAsync::IAssetAccessor.
◆ tick()
void CesiumCurl::CurlAssetAccessor::tick |
( |
| ) |
|
|
overridevirtualnoexcept |
Ticks the asset accessor system while the main thread is blocked.If the asset accessor is not dependent on the main thread to dispatch requests, this method does not need to do anything.
Implements CesiumAsync::IAssetAccessor.
The documentation for this class was generated from the following file:
- /home/runner/work/cesium-native/cesium-native/CesiumCurl/include/CesiumCurl/CurlAssetAccessor.h