URLSession and Synchronous HTTP request

It might sound stupid(and most of the time it is) but there are situations when you want to make a synchronous request using URLSession. I faced the situation when I had to log both request and response together. Semaphores and Synchronous HTTP request A asynchronous request looks something like this To make it behave we … Read more