Bronze Challenge: Printing the Response Information

The completion handler for dataTask(with:completionHandler:) provides an instance of URLResponse. When making HTTP requests, this response is of type HTTPURLResponse (a subclass of URLResponse).

Print the statusCode and allHeaderFields to the console. These properties are very useful when debugging web service calls.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.22.242.141