Locally deploy async HTTP server emulating the Wolfram Cloud
Contributed by: Antonis Aristeidou
Locally deploy HTTP servers able to emulate the Wolfram Cloud using GenerateHTTPResponse.
Installation Instructions
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["ToneAr/LocalDeploy"]
To load the code after installation, evaluate this code:
Needs["ToneAr`LocalDeploy`"]
Details
LocalDeploy creates a
SocketListener on the specified
port which has a HandlerFunction to compute and return a result from the
api as an HTTP/1.1 response.
Fully async request hadnling.
LocalDeploy will return a LocalDeploymentObject representing the deployment containing all metainformation.
Examples
Basic Examples (6)
Deploy an APIFunction on an available port:
The deployed API can be called using URLExecute:
This is the same as doing:
A port to deploy on can be specified using a second argument:
Make a request to the API, importing the response data as a WXF:
Both Close and DeleteObject will close the sockets associated with the deployments:
Publisher
Antonis Aristeidou
Disclosures
- Wolfram Language system configuration
- Local system interactions
-
Learn More »
Version History
- 2.1.3
– 05 March 2026
- 2.1.2
– 18 June 2025
- 2.1.1
– 18 June 2025
- 2.1.0
– 18 June 2025
- 2.0.1
– 03 June 2025
- 2.0.0
– 30 May 2025
MIT License
Paclet Source