SetIncomingDataToNetworkParamsHolderHeaders
fun EventSchemaBuilderScope.SetIncomingDataToNetworkParamsHolderHeaders(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {})
Stores incomingData as the request headers in the client's NetworkParametersHolder, so a later request in the chain picks them up instead of carrying the headers on its own schema. incomingData is required and must be a map holding at least one String value; entries whose value isn't a String are dropped. Dispatches onSuccess (no data) when the headers were stored; onFailure (no data, logged) when incomingData is missing, isn't a map, or holds no String value at all.
Parameters
id
Unique identifier of this event. Defaults to a random id.
trigger
Trigger that fires this event, built via EventTriggers.
events
Child events chained after this one, wired to its triggers (onSuccess, onFailure).