RequestStateCodec.encode

Wrap stateJson (the handler's plaintext requestState) into a wire blob bound to subject/toolName (per the configured binding) and stamped with an expiry ttl from now. The result is what the client sees and echoes back; decode is its inverse.

class RequestStateCodec
@safe
string
encode
(
string stateJson
,
string subject
,
string toolName
)