Added withResponse parameter to .write() method for iOS