Pawn Requests Versions Save

pawn-requests provides an API for interacting with HTTP(S) JSON APIs.

0.10.0

1 year ago

(2022-11-25)

Bug Fixes

  • processing requests would fail due to no matching amx instance when other amx instances where used (7f81a8a)
  • renamed GetObject to GetObjectAlt internally to avoid msvc macro interference (630ed5a)

0.9.0

1 year ago

(2022-11-19)

Bug Fixes

  • boost: make sure we include boost directories to ensure build (9868dd8)
  • ssl: specify SSL paths for both requests/websockets for unix systems (32f2829)

0.8.7

5 years ago

Fixes a bug with Request randomly failing due to uninitialised memory. Thanks to @ziggi for the fix!

0.8.6

5 years ago

Fixed a bug that caused callbacks to duplicate when multiple AMX instances were present (such as Filterscripts).

0.8.5

5 years ago

Rebuilt with the latest version of cpprestsdk - this fixes #17

0.8.4

5 years ago

Added a missing const, thanks @AGraber!

0.8.3

5 years ago

Fixed some minor bugs with garbage collection. Using JsonToggleGC would be ineffective if JsonGet* functions were used on a node.

0.8.2

5 years ago

Fixed content type not being set on JSON requests with no body.

RequestJSON with POST will now correctly set Content-Type: application/json even if no JSON body is set.

0.8.1

5 years ago

Fixed return values for missing keys on JsonGet* functions. Calling JsonGet* with a key that does not exist will now return a non-zero error code. This release also removes the ERROR: prints caused by doing this.

0.8.0

5 years ago

Implemented JsonSet* functions for directly assigning keys to values. This can be used as an alternative to the Json* object builder API for explicitly setting keys to values of all types. This combined with JsonToggleGC means JSON objects can be modified across function calls and via callbacks.

Example:

new Node:n = JsonObject();
JsonToggleGC(n, false);
mutateJson(n);
JsonToggleGC(n, true);```
// n now contains key1 and key2

// in another part of code
mutateJson(Node:n) {
    JsonSetString(n, "key1", "value1");
    JsonSetObject(n, "key2", JsonObject(
        "key3", JsonString("value2")
    ));
}