Stops sending the events of the runtime and its maps to a callback.
See mln_runtime_clear_event_handler in the
C API reference.
Stops adding headers to the runtime's HTTP requests.
See mln_runtime_clear_http_header_transform in the
C API reference.
Removes the runtime's resource provider, so the library loads every request itself.
See mln_runtime_clear_resource_provider in the
C API reference.
Stops rewriting the URLs of the runtime's network requests.
See mln_runtime_clear_resource_transform in the
C API reference.
Sends the events of the runtime and its maps to a callback.
The callback replaces the one set before.
See mln_runtime_set_event_handler in the
C API reference.
Adds headers to the runtime's HTTP requests.
The transform replaces the one set before. In a browser or on OpenHarmony,
serve the requests with RuntimeHandle.setResourceProvider() instead.
See mln_runtime_set_http_header_transform in the
C API reference.
Errors:
Status.unsupported when the library runs in a browser or on
OpenHarmony.Serves the runtime's network requests through a callback.
The provider receives the network requests that its routes match, and the library loads the rest as usual. A provider can serve URL schemes that the library can't load itself. The provider replaces the one set before.
See mln_runtime_set_resource_provider in the
C API reference.
Rewrites the URLs of the runtime's network requests.
The transform replaces the one set before.
See mln_runtime_set_resource_transform in the
C API reference.
The commands of a RuntimeHandle that discard their outcomes: each returns once native code accepts it and allocates no completion. A later completion on the same map fences them.