Simple HTTP and REST Server – Unity Asset

 

HTTP Server Asset for Unity

Overview

This asset allows you to create an HTTP server within Unity, providing a REST API for data exchange with other tools.

Features

Simple Routing

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.

Event-Based System

The server utilizes an event-based system to register all route handlers. Simply drag and drop the desired route handler onto the server. Additionally, the event-based system is capable of supporting programmatic events.

Resource Loading

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.

Speed

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.

Multiple Instances

The event-based architecture makes it possible to run many different servers over different ports at the same time.

Listening Addresses

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.

Note! You have to pay for this item, but you can get it for free now. Remember, this is only for learning or trying out the product before you buy it, not for use in your business.

Leave a Reply

Your email address will not be published. Required fields are marked *