A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
a11::actions::internal Namespace Reference

Functions

std::string UnpaddedWebSafeBase64 (std::string_view value)
 
ActionHandler GuardHandler (ActionHandler handler)
 
SyncActionHandler GuardSyncHandler (SyncActionHandler handler)
 
OnActionCancelled GuardOnCancelled (OnActionCancelled callback)
 

Variables

template<typename T >
constexpr bool kLogsAsText
 Whether Action::Log reads a T as text rather than as bytes.
 

Function Documentation

◆ GuardHandler()

ActionHandler a11::actions::internal::GuardHandler ( ActionHandler  handler)

◆ GuardOnCancelled()

OnActionCancelled a11::actions::internal::GuardOnCancelled ( OnActionCancelled  callback)

◆ GuardSyncHandler()

SyncActionHandler a11::actions::internal::GuardSyncHandler ( SyncActionHandler  handler)

◆ UnpaddedWebSafeBase64()

std::string a11::actions::internal::UnpaddedWebSafeBase64 ( std::string_view  value)

Variable Documentation

◆ kLogsAsText

template<typename T >
constexpr bool a11::actions::internal::kLogsAsText
inlineconstexpr
Initial value:
=
std::is_convertible_v<const T&, std::string_view>

Whether Action::Log reads a T as text rather than as bytes.

C++ does not distinguish the two – a std::string is a sequence of bytes, which is why a11::data::kBytesMimetype is what a11::nodes::AsyncNode::Put defaults a string to. A log is the case where the other reading is nearly always the intended one, so anything a std::string_view can be made from is text here: std::string, std::string_view, a literal, and const char*.