🧭 Simple HTTP and REST Server
I have published another asset in the Unity Asset Store today:
Use this free asset to create an HTTP server in Unity to provide a REST API for exchanging data with other programs or tools.
How can this asset help me?
Simple Routing
Event Based
Resource Loading
Fast
Multiple Instances
Listening Addresses
For now in Unity Asset Store
Use this free asset to create an HTTP server in Unity to provide a REST API for exchanging data with other programs or tools.
Exchanging information between Unity and another program is complicated. This asset provides a simple and fast way to ensure the exchange of information in both directions.
Implementing routes in Unity has never been easier! With a simple attribute that you write over the function you can specify both the HTTP method and the path.
All route handlers are registered via an event-based system on the server. You only need to drag and drop the route handler into the server.
Using Resource Loading you can load files from the Resources folder of your game and output them via the HTTP server. See the example "2. Load Files from Resource Folder" in the Examples folder.
The speed of the server is overwhelming, which is achieved by using only native implementations. To ensure this, external libraries were deliberately avoided during development.
The event based architecture makes it possible to run many different servers over different ports at the same time.
Under Listening Addresses you can not only select the ports to listen on, but also specify whether the server is accessible from the home network or only from the same computer.
https://u3d.as/3018
Use the Simple HTTP and REST Server from Shadow Grove Games on your next project. Find this utility tool & more on the Unity Asset Store.
