SendNetworkRequest
Sends an HTTP request to url with method, headers, body and an optional timeoutMillis, and emits the response downstream — the general-purpose way to talk to a backend from inside an event chain. A JSON response is parsed into plain maps, lists and primitives (a JSON body that fails to parse yields null); anything else is passed through as a raw ByteArray. Does not consume incomingData. Dispatches onStart before the request is sent; onNetworkResponse(status)/onNetworkFailure(status) (carrying the parsed body) when a child event is wired to that exact HTTP status — the former for 2xx, the latter for the rest; onSuccess (carrying the parsed body) when the response is 2xx and no status-specific event was declared; onFailure (carrying the parsed body, or the Throwable on transport failures like timeout/no connectivity — logged) when the response isn't 2xx and no status-specific event was declared. Exactly one outcome trigger fires per response.
Parameters
Unique identifier of this event. Defaults to a random id.
Trigger that fires this event, built via EventTriggers.
Child events chained after this one, wired to its triggers (onStart, onNetworkResponse, onNetworkFailure, onSuccess, onFailure).
URL requested.
HTTP method used for the request.
Request body. Defaults to none.
Request headers. Defaults to none.
Request timeout, in milliseconds. Defaults to none (client default).