Skip to content

Instantly share code, notes, and snippets.

@BrentFarris
Created August 27, 2015 09:34
Show Gist options
  • Save BrentFarris/230c46c9da1d28e94cca to your computer and use it in GitHub Desktop.
Save BrentFarris/230c46c9da1d28e94cca to your computer and use it in GitHub Desktop.
Forge Networking: HTTP Library
using UnityEngine;
using System.Collections;
using BeardedManStudios.Network;
public class HTTPLibrary : MonoBehaviour
{
private void Update()
{
if (!Input.GetKeyDown(KeyCode.Space))
return;
HTTP http = new HTTP("https://www.google.com/");
http.Get((response) =>
{
Debug.Log(response);
}, new string[] { "arg=1", "watch=abc", "cat=hat" });
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment