Fastly Compute C++ SDK
Loading...
Searching...
No Matches
fastly::kv_store::LookupResponse Class Reference

#include <kv_store.h>

Public Member Functions

Body take_body ()
 Returns the body, making the LookupResponse bodyless.
std::optional< Bodytry_take_body ()
std::vector< uint8_t > take_body_bytes ()
std::optional< std::vector< std::uint8_t > > metadata () const
 Reads the metadata of the KVStore item.
std::uint64_t current_generation () const
 Reads the generation of the KVStore item.

Friends

class KVStore

Member Function Documentation

◆ current_generation()

std::uint64_t fastly::kv_store::LookupResponse::current_generation ( ) const

Reads the generation of the KVStore item.

◆ metadata()

std::optional< std::vector< std::uint8_t > > fastly::kv_store::LookupResponse::metadata ( ) const

Reads the metadata of the KVStore item.

◆ take_body()

Body fastly::kv_store::LookupResponse::take_body ( )

Returns the body, making the LookupResponse bodyless.

◆ take_body_bytes()

std::vector< uint8_t > fastly::kv_store::LookupResponse::take_body_bytes ( )

Converts the body into a byte vector, making the LookupResponse bodyless.

◆ try_take_body()

std::optional< Body > fastly::kv_store::LookupResponse::try_take_body ( )

Returns the body if it exists, making the LookupResponse bodyless. Otherwise returns std::nullopt.

◆ KVStore

friend class KVStore
friend

The documentation for this class was generated from the following file: