Comment créer un GET, POST, et METTRE la demande en Swift?

Je peux me connecter à un serveur de manière synchrone avec ce bout de code dans swift.

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

Cela n'est bon que pour recevoir des informations tout à la fois, mais comment pourrais-je utiliser un GET, POST, et METTRE avec Swift. N'importe comment beaucoup je recherche, je ne peux pas trouver un bon tutoriel ou un exemple sur la façon d'exécuter ces.

OriginalL'auteur AConsiglio | 2015-03-31