title: How to create a GET, POST, and PUT request in Swift?
body: <p>I can connect to a server synchronously with this code snippet in swift.</p>
  
  <pre><code>let URL: NSURL = NSURL(string: "http://someserver.com)!
  let InfoJSON: NSData? = NSData(contentsOfURL: URL)
  let JsonInfo: NSString = NSString(data:InfoJSON!, encoding: NSUTF8StringEncoding)!
  let GameListAttributions: NSArray = NSJSONSerialization.JSONObjectWithData(InfoJSON!, options: .allZeros, error: nil)! as NSArray
  </code></pre>
  
  <p>This is only good for receiving information all at once, but how would I use a GET, POST, and PUT with Swift. No matter how much I search I can't find a good tutorial or example on how to execute these.</p>