python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to add network fetch inside swift struct initializer
I'm trying to get data from an URL (1st network call), then make a 2nd network call to fetch image from the url in the first response, and present on tableview in swift.
The json from 1st network call...
RobotX
Votes: 0
Answers: 1
URLSession and URLCache not working as expected
For a GET request which is consistently the same (it has a query param too), I'm returning in the response this response header.
Cache-Control: max-age=3600, private
I'm creating a URLSession with th...
bandejapaisa
Votes: 0
Answers: 0
Can't use URLSession with Swift on Watchkit
I have a problem when trying to fetch some data with swift on apple watch. When i try this code in Swift Playground it works well but when I put it in an WatchOS app it shows me this error :
Error Dom...
MaxBrt18
Votes: 0
Answers: 1
Timeout error when post public key string with URLSession
I am creating a rsa key pair and send the public key to my api. But the post request fails with Timeout error. Following is my function for the request:
func perform<T: Decodable>(reqData: Data,...
Panks
Votes: 0
Answers: 0