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 Do I relogin after getting a 401 back using URLSession and CombineAPI
I'm new to combine and URLSession and I'm trying to find a way to log in after I get a 401 error back. My Set up for the URLSession.
APIErrors:
enum APIError: Error {
case requestFailed
case json...
Justin Sinnard
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
How can I pass parameters in an HTTP Post request in Swift?
Am working on a simple Swift test app which just calls Perl script on my server. Right now I just want to send over a username and id, and get them back in a JSON response. Nothing more, am still in t...
Bartender1382
Votes: 0
Answers: 4
Swift URLSession running asynchronously so it doesn't register in time for onAppear to add data to View
I am trying to call an API and then display that data in my view in Swift. I can successfully make the API call and get the data back, but I am having trouble displaying this data. As seen in the belo...
kmcclenn
Votes: 0
Answers: 0