Typedef foxglove::FetchAssetHandler¶
Defined in File fetch_asset.hpp
Typedef Documentation¶
-
using foxglove::FetchAssetHandler = std::function<void(std::string_view uri, FetchAssetResponder &&responder)>¶
A fetch asset handler callback.
This callback is invoked from the client’s main poll loop and must not block. If blocking or long-running behavior is required, the implementation should return immediately and handle the request asynchronously.
The
responder
represents an unfulfilled response. The implementation must eventually call eitherrespondOk
orrespondError
, exactly once, in order to complete the request. It is safe to invoke these completion methods synchronously from the context of the callback.- Param uri:
The requested asset URI.
- Param responder:
The responder used to send a response to the client.