NetNewsWire/Frameworks/RSWeb
Brent Simmons 39d6086e0c Use %20 instead of + when encoding for URL query strings, since it appears to be more compatible. (Well, it works better with Micro.blog.) 2018-01-14 11:11:53 -08:00
..
RSWeb Use %20 instead of + when encoding for URL query strings, since it appears to be more compatible. (Well, it works better with Micro.blog.) 2018-01-14 11:11:53 -08:00
RSWeb.xcodeproj Add Dictionary and String extensions for creating URL query strings. Add tests. 2018-01-13 17:40:27 -08:00
RSWebTests Use %20 instead of + when encoding for URL query strings, since it appears to be more compatible. (Well, it works better with Micro.blog.) 2018-01-14 11:11:53 -08:00
RSWebiOS Add RSWeb framework. 2017-05-22 13:17:28 -07:00
.gitignore Add RSWeb framework. 2017-05-22 13:17:28 -07:00
LICENSE Add RSWeb framework. 2017-05-22 13:17:28 -07:00
README.md Add RSWeb framework. 2017-05-22 13:17:28 -07:00

README.md

RSWeb

RSWeb is utility code — all Swift — for downloading things from the web. It builds a Mac framework and an iOS framework.

Easy way

See OneShotDownload for a top-level download function that takes a URL and a callback. The callback takes Data, URLResponse, and Error parameters. Its easy.

Slightly less easy way

See DownloadSession and DownloadSessionDelegate for when youre doing a bunch of downloads and you need to track progress.

Extras

HTTPConditionalGetInfo helps with supporting conditional GET, for when youre downloading things that may not have changed. See HTTP Conditional Get for RSS Hackers for more about conditional GET. This is especially critical when polling for changes, such as with an RSS reader.

MimeType could use expansion, but is useful for some cases right now.

MacWebBrowser makes it easy to open a URL in the default browser. You can specify whether or not to open in background.