| ▲ | tarentel 19 hours ago | |
The first one you can configure and it is the default way you'd see this done in real life. You can add headers, change the request type, etc. Likely, if you were making an actual app the request configuration would be much longer than 1 line I used. I was mostly trying to show that the Swift example was hiding a lot of things. The second one is for downloading directly from a URL and I've never seen it used outside of examples in blog posts on the internet. | ||