I was wondering what the difference between setting a header value and adding a header value to an NSMutableURLRequest is. Sounds sort of obvious but, for example, can't you just use addValue every time? Will setting a header that doesn't exist throw an error? Will adding a header when it already exists in the request overwrite the existing value?
example
let request.NSMutableURLRequest(URL: NSURL(string: "someURL")!)
request.addValue("application/json", forHTTPHeaderField: "Content-Type")
...