Package-level declarations
Functions
Downloads url and hands the result to the platform's own download destination — the user's Downloads folder or equivalent — under targetFileName, with mimeType describing the content. method, headers and body shape the request. Does not consume incomingData. Dispatches onStart before the download begins; onDownloadProgress repeatedly while downloading (carrying the progress); onDownloadFinish then onSuccess (both carrying targetFileName) when the download completed; onDownloadFailure then onFailure (both carrying the Throwable, logged) when it failed; onCancelled (no data) when the user cancels the download — in that case neither download-failure nor failure fires.
Downloads url into the client's own file storage under targetFileName, where GetFile and DeleteFile can reach it afterwards. method, headers and body shape the request. Does not consume incomingData. Dispatches onStart before the download begins; onDownloadProgress repeatedly while downloading (carrying the progress); onDownloadFinish then onSuccess (both carrying targetFileName) when the download completed; onDownloadFailure then onFailure (both carrying the Throwable, logged) when it failed.
Downloads url without touching the filesystem, keeping the content in memory. method, headers and body shape the request. Does not consume incomingData. Dispatches onStart before the download begins; onDownloadProgress repeatedly while downloading (carrying the progress); onDownloadFinish then onSuccess (both carrying the total byte count) when the download completed; onDownloadFailure then onFailure (both carrying the Throwable, logged) when it failed.
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.
Stores incomingData as the request body in the client's NetworkParametersHolder, so a later request in the chain picks it up instead of carrying the body on its own schema. incomingData is required; any non-null value is accepted as-is. Dispatches onSuccess (no data) when the body was stored; onFailure (no data, logged) when incomingData is null.
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.
Stores incomingData as the query parameters in the client's NetworkParametersHolder, so a later request in the chain picks them up instead of carrying the parameters on its own schema. incomingData is required and must be a map keyed by String. Dispatches onSuccess (no data) when the parameters were stored; onFailure (no data, logged) when incomingData is missing or isn't a map.
Stores incomingData as the URL in the client's NetworkParametersHolder, so a later request in the chain picks it up instead of carrying the URL on its own schema — the pattern behind SendFile-style flows where the URL comes from a prior response. incomingData is required and must be a String. Dispatches onSuccess (no data) when the URL was stored; onFailure (no data, logged) when incomingData is missing or isn't a String.
Uploads the PlatformFile carried in incomingData to url with method, headers and contentType, reporting progress as it goes — pair it with OpenFilePicker or GetFile using their platform-file output. 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 raw bytes. incomingData is required and must be a PlatformFile. Dispatches onStart after incomingData is validated, before the upload begins; onUploadProgress repeatedly while uploading (carrying the progress); onNetworkResponse(status)/onNetworkFailure(status) (carrying the parsed body) when a child event is wired to that exact HTTP status — the former for successful statuses, the latter for the rest; onSuccess (carrying the parsed body) when the upload succeeded and no status-specific event was declared; onFailure when incomingData isn't a PlatformFile (fired before onStart, no data), when the response is unsuccessful with no status-specific event declared (carrying the parsed body), or when the upload itself fails (carrying the Throwable) — all logged.