-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I noticed a couple inconsistencies between Runnable API and documentationthat I wanted to document below to allow for tracking and further discussions.
- There is a variety of
set*
methods in some languages (e.g. Rust) which are there to enable experimentation with runnables implementing some middleware-functionality. These are intentionally undocumented for now as the API ergonomy and usecases are developed. - In JavaScript the
body
method returns a JSstring
. and thebodyBytes
method needs to be used to get the raw bytes. Other runtime seem to default tobody
returning the raw bytes. - The
state
method in every supported language seem to return the state key value as a string, JavaScript and some other languages also provide a "raw" method (state_raw
orstateBytes
) to get the raw bytes which is undocumented.