HTTP Requests
Learn to make HTTP calls over REST and GraphQL protocols through GetConnect.
We'll cover the following
Introduction to GetConnect
GetConnect
is GetX’s built-in networking library. It allows us to make all kinds of HTTP requests, whether REST or GraphQL. It also provides a handful of configuration options and advanced features we’ll cover in the upcoming lesson. But for now, let’s explore the HTTP methods!
REST API
Representational State Transfer (REST) is a standard API architecture for the web. It helps us integrate server-side programs with client-facing applications in the form of microservices. These microservices are functions written on the server side that can be executed by making HTTP requests from the client.
In Flutter, we can make HTTP requests by using any one of the available networking libraries, such as http
and dio
. But since we are in the GetX ecosystem, we can use GetX’s internal networking library called GetConnect
.
To make HTTP requests, we must first create an instance of the GetConnect
class.
Get hands-on with 1400+ tech skills courses.