LookupResponse
Include fastly/kv_store.h to use this class.
Methods
current_generation
View sourcestd::uint64_t fastly::kv_store::LookupResponse::current_generation() constReads the generation of the KVStore item.
Returns
std::uint64_t
metadata
View sourcestd::optional<std::vector<std::uint8_t>> fastly::kv_store::LookupResponse::metadata() constReads the metadata of the KVStore item.
Returns
std::optional<std::vector<std::uint8_t>>
take_body_bytes
View sourceConverts the body into a byte vector, making the LookupResponse bodyless.
Returns
std::vector<uint8_t>
try_take_body
View sourceReturns the body if it exists, making the LookupResponse bodyless. Otherwise returns std::nullopt.
Returns
std::optional<Body>