NetNewsWire/RSWeb
Brent Simmons 05347129bf Delete no-longer-needed (due to OS changes) UTS46 URL handling. 2024-11-09 10:23:13 -08:00
..
.swiftpm/xcode/package.xcworkspace Make RSWeb a local module. Normalize Swift language version and platforms in local modules. 2024-11-06 21:01:17 -08:00
Sources/RSWeb Delete no-longer-needed (due to OS changes) UTS46 URL handling. 2024-11-09 10:23:13 -08:00
Tests/RSWebTests Make RSWeb a local module. Normalize Swift language version and platforms in local modules. 2024-11-06 21:01:17 -08:00
LICENSE Make RSWeb a local module. Normalize Swift language version and platforms in local modules. 2024-11-06 21:01:17 -08:00
Package.swift Delete no-longer-needed (due to OS changes) UTS46 URL handling. 2024-11-09 10:23:13 -08:00
README.md Make RSWeb a local module. Normalize Swift language version and platforms in local modules. 2024-11-06 21:01:17 -08: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.