Skip to content

Commit 0640682

Browse files
committed
Add setDynamicdata method
1 parent 5ea92c8 commit 0640682

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

include/proxy-wasm/context.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,11 @@ class ContextBase : public RootInterface,
321321
return unimplemented();
322322
}
323323

324+
WasmResult setDynamicdata(std::string_view /* key */,
325+
std::string_view /* serialized_value */) override {
326+
return unimplemented();
327+
}
328+
324329
// Continue
325330
WasmResult continueStream(WasmStreamType /* stream_type */) override { return unimplemented(); }
326331
WasmResult closeStream(WasmStreamType /* stream_type */) override { return unimplemented(); }

include/proxy-wasm/context_interface.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,15 @@ struct GeneralInterface {
582582
*/
583583
virtual WasmResult setProperty(std::string_view key, std::string_view value) = 0;
584584

585+
586+
/**
587+
* Set the value of a Dynamicdata.
588+
* @param path is a sequence of strings describing a path to a property.
589+
* @param value the value to set. For non-string, non-integral types, the value may be
590+
* serialized..
591+
*/
592+
virtual WasmResult setDynamicdata(std::string_view key, std::string_view value) = 0;
593+
585594
/**
586595
* Custom extension call into the VM. Data is provided as WasmBufferType::CallData.
587596
* @param foreign_function_id a unique identifier for the calling foreign function. These are

0 commit comments

Comments
 (0)