lookup

Functionin device_detectioncompute-sdk-cpp 0.7.0View source
fastly::expected<std::optional<Device>> fastly::device_detection::lookup(std::string_view user_agent)

Look up the data associated with a particular User-Agent string.

Non-transactional cache lookup with string key.

Parameters

user_agent: std::string_view

Returns

fastly::expected<std::optional<Device>>