Making your first http request with DIO
Import the DIO package
Making your first http request with DIO
The above example will make a request to http://google.com and print the result.
Additional Examples
Performing a GET
request:
Performing a POST
request:
Performing multiple concurrent requests:
Downloading a file:
Dio APIs
Creating an instance and set default configs.
You can create an instance of Dio with an optional BaseOptions
object:
Last updated
Was this helpful?