Scripting / Reference
Web
Types in the ParelVR.Volt.Web namespace.
VoltStringDownloader#
ParelVR.Volt.Web.VoltStringDownloader static
Loads text from the web. The same rules as VoltWeb apply.
VoltStringDownloader methods#
Loads the text at an address.
VoltUrl#
ParelVR.Volt.Web.VoltUrl class
A web address. Only https addresses of public hosts are valid.
VoltUrl constructors#
Wraps an address. An address that is not valid can be created but is refused when it is used.
VoltUrl properties#
The host part of the address, in lower case.
True when the address is a plain https address of a public host.
The address as text.
VoltWeb#
ParelVR.Volt.Web.VoltWeb static
Controlled access to the web. Requests are https only, go to hosts the world declared when it was built, are limited in number, size and time, and never carry anything that identifies the player.
VoltWeb methods#
Requests an address and returns at once; the answer arrives later.
True when the world may send requests to the address.
Sends text to an address.
Sends structured data to an address as JSON.
VoltWebRequest#
ParelVR.Volt.Web.VoltWebRequest class
A web request in progress. Yield it in a coroutine to wait for the answer, or override OnWebResponse on the behaviour that started it.
VoltWebRequest properties#
Why the request failed.
True once the request has finished, whatever the result.
The answer. Null until the request is done, and when no answer arrived.
True when an answer with a success status arrived.
The body of the answer as text, or an empty string.
The address that was requested.
VoltWebResponse#
ParelVR.Volt.Web.VoltWebResponse class
The answer to a web request.
VoltWebResponse properties#
The content type the server reported.
True for a status from 200 to 299.
HTTP status code.
The body as text.
