withValue


Description:

public Result<Context,Error> withValue (string key, string value)

Creates child context with additional key/value.

Parameters:

key

key string.

value

value string.

Returns:

Result.ok(child context containing key/value), or Result.error(ContextError.INVALID_ARGUMENT) when key is empty.