{"repo":"satanas/unity-simple-http","free":true,"listed":false,"github":"https://github.com/satanas/unity-simple-http","clone":"git clone https://github.com/satanas/unity-simple-http.git","description":"A dead simple HTTP client for Unity3D","language":"C#","stars":34,"topics":["unity3d","http","http-client","csharp","rest-client"],"license":null,"category":"game-templates","readme_excerpt":"SimpleHTTP SimpleHTTP is a dead simple HTTP client for Unity, because HTTP shouldn't be that hard. Installation Download the .unitypackage file and inside Unity go to the menu Assets - Import New Assets... and select the package for SimpleHTTP. Features Currently, SimpleHTTP supports: HTTP and HTTPS GET, POST, PUT and DELETE Headers Timeouts All of these features with a simple and consistent API. In the future it will also support: More validations URL parsing Delegates to indicate progress Usage SimpleHTTP is very, very, very, simple to use (really!) and it is asynchronous. You can send any type of request basically with three objects: Request , Client and Response . Consider that the general flow would be something like this: Create a request Use the client to send the request Get the response Profit! To make your life even easier, SimpleHTTP support JSON serialization and deserialization, so you don't need to worry about that. To use it in your Unity scripts, you just need to add the following instruction at the top of your .cs scripts: Below are some examples that can help you understand how it works. Also you can refer to the Examples folder for a full working example of the library with a demo scene. GET POST with JSON payload (raw) As I mentioned before, SimpleHTTP supports JSON serialization and deserialization, so you just need to have serializable POJOs in your code. Let's say you want to fetch a post from a certain URL and your POJO looks like this: Then you can se","default_branch":null,"files":null,"tree":[],"storefront":"/r/satanas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/satanas/unity-simple-http/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}