- 1.1.7 and master22.214.171.124.04.2
- 1.1.7 and masteriOSmacOS(Intel)macOS(ARM)LinuxtvOSwatchOS
Declarative proxy for decoupling web requests from their delivery. Similar to js `fetch()`; helpful in unit-tests.
WebRequest decouples network resources from their request declarations.
WebRequest allows you to compose all of the pieces and parts needed to build, execute, and test any
sort of network request, using either static composition or dynamic building. Just describe the
request, inject the web delivery-mechanism, then execute.
WebResponse you get back will have the original request attached along with the status code,
headers, and other data depending on whichever mechanism was used.
It comes with 4 built-in delivery mechanisms out of the box, all of which natively use Apple's
x-www-form-urlencodedinteractions over HTTP
To extend functionality, you can create new ones from scratch (such as if you want to wrap another request library like AlamoFire), or you can subclass the default ones and tweak them to your needs.