Get started with reqwest CDN

MIT licensed

Reqwest is a lightweight Rust library for making HTTP requests.

Tags:
  • ender
  • ajax
  • xhr
  • connection
  • web 2.0
  • async
  • sync

Stable version

Copied!

How to start using reqwest CDN


<!DOCTYPE html>
<html>
<head>
    <script src="https://cdn.cdnhub.io/reqwest/2.0.5/reqwest.min.js"></script>
    <script>
        // Define a callback function to handle the response
        function onResponse(data) {
            console.log('Received data:', data);
        }

        // Use reqwest to make a GET request
        reqwest({
            url: 'https://jsonplaceholder.typicode.com/todos/1',
            type: 'json',
            success: onResponse
        });
    </script>
</head>
<body>
</body>
</html>
Copied!
Copied!

All versions