request function
Creates an HttpRequest for the specified URL string.
This is a convenience function for creating HTTP requests without having to manually parse the URL string to a Uri.
url The URL string to create a request for.
Returns an HttpRequest instance ready for configuration and execution.
Example
final response = await request('https://api.calljmp.com/users')
.params({'limit': 10})
.get()
.json();
Implementation
HttpRequest request(String url) => HttpRequest(Uri.parse(url));