GameMaker Studio 2 (2.3)
Icon

Request Master

FrostyCat

You must be logged in to obtain assets

Description

Overview

Request Master is a full-featured toolkit for using http_request() to its potential. Send HTTP requests with parameters already encoded for you, instead of manually escaping them and building query strings. The included request helpers also enable handling the response using a callback instead of a separate Async HTTP event.

Features

  • Send requests in properly encoded application/x-www-form-urlencoded, multipart/form-data and application/json formats
  • Inline support for headers, no need for an extra map
  • Automatic parsing for JSON responses
  • Intuitive response handling with callbacks

Documentation

See the Wiki section on the official GitHub repository.

Example

Accessing Steam API:

xhr_get("https://api.steampowered.com/ISteamNews/GetNewsForApp/v2/", {
    params: { appid: 282800, count: 1 },
    done: function(res) {
        show_message("Latest news from 100% Orange Juice: " + res.data.appnews.newsitems[0].title);
    },
    fail: function() {
        show_message("Can't fetch headlines from Steam.");
    }
});

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 1.0.0. Published September 20, 2020

Initial public release.

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top