Created
August 27, 2015 09:34
-
-
Save BrentFarris/230c46c9da1d28e94cca to your computer and use it in GitHub Desktop.
Forge Networking: HTTP Library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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