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.1.1. Published April 4, 2021

Added support for new built-in JSON functions and reduced JSON Struct to an optional dependency. Please continue using v1.0.0 for GMS 2.3.0 and 2.3.1.

Changes

  • JSON Struct is now only an optional dependency.
  • Added StructBody for encoding outbound request bodies with json_stringify.
  • Changed default configs to use json_parse and json_stringify instead of JSON Struct functions.
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top