Simple HTTP and REST Server (v1.6)


Use this asset to create a HTTP server within Unity to provide an REST API for exchanging data with other tools.

🏁 How can this asset help me?

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.

🧭 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

The server utilizes an event-based system to register all route handlers. Simply drag and drop the desired route handler into 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.

⚡ Fast

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.

🖥️ Platform support

  • ✅ Windows (Mono/IL2CPP Builds)
  • ✅ Linux (Mono/IL2CPP Builds)
  • ✅ Mac OS M1 (Mono/IL2CPP Builds)
  • ✅ Mac OS Intel (Mono/IL2CPP Builds)
  • ❌ Android (Currently not supported)
  • ❌ iOS (Currently not supported)
  • ❌ WebGL (Not supported)
  • ❌ Game Consoles (Not supported)

Technical details

  • Simple Routing: Register new endpoints fast and easy
  • Event Based: Easy registration of handlers by drag and drop
  • Resource Loading: Support for loading resources from the resource folder
  • Multiple Instances: Allows to host multiple servers on different ports simultaneously
  • Fast: Very short response times due to native implementation
  • Listening Addresses: Allows selecting multiple ports per server and restricting access to localhost or homenetwork
  • Supports all HTTP Methods: HEAD, GET, POST, PUT, DELETE, OPTIONS


Download Links:

Asset Version (v1.6)

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

Leave a Reply