|
A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
|
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. | |
| ActionHandler a11::actions::internal::GuardHandler | ( | ActionHandler | handler | ) |
| OnActionCancelled a11::actions::internal::GuardOnCancelled | ( | OnActionCancelled | callback | ) |
| SyncActionHandler a11::actions::internal::GuardSyncHandler | ( | SyncActionHandler | handler | ) |
| std::string a11::actions::internal::UnpaddedWebSafeBase64 | ( | std::string_view | value | ) |
|
inlineconstexpr |
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*.