My first Swift URLSession in Replit

Hi everyone,

If anyone interested in http connection on Replit using Swift, take a look in that:
https://replit.com/@gazolla/URLSession-Test?v=1

Regards,
Gazolla

1 Like

Hi @gazolla

This is very neat! How might others use this?

2 Likes

Hi @IanAtReplit,

Thanks for asking !

This code uses URLSession to fetch some repositories names from github. You can change the URL and some structs to fetch data from other webservice endpoint.

I will improve this repls to make it clear.

Regards,
Gazolla

1 Like