Created
July 13, 2016 06:22
-
-
Save pcantrell/771ebb53e6acf02ed091c5d29a1ca941 to your computer and use it in GitHub Desktop.
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
Siesta.enabledLogCategories = LogCategory.all | |
let service = Service(baseURL: myBaseURL) | |
service.configureTransformer("**") { (content: NSData, entity) -> NSXMLDocument? in | |
return try? NSXMLDocument(data: content, options: 0) | |
} | |
service.resource("foo.xml").load() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment