Skip to content

URLRequest & URLResponse

Norman Basham edited this page Feb 17, 2020 · 3 revisions

URLRequest

Source


Get method, url, and header info from URLRequest with print(req.info).

Get REST URLRequest with methods createGet, createPost, createPut, and createDelete.

Get the status code from a URLResponse with let statusCode = resp.statusCode.

Clone this wiki locally