Commit Graph

4 Commits

Author SHA1 Message Date
Werner
7404418903 Adds SShttp (#18105)
* Adds SShttp

Adds a HTTP Subsystem with a integrated Retry-Queue for Status-Code 429 and 503

Changes the discord subsystems send message function to the new http subsystem

The previous http_ request functions remain but have been renamed to old to signify that they should not be used for new implementations

* Fixes lint error

* DMDoc Pass

* marks build_options as private

* SHOULD_NOT_SLEEP where its relevant

* update_channels is not a private proc, as it can be called by the API

* Remove comments

* Make fluffy happy

* Makes fluffy even happier

---------

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
2024-01-06 21:19:45 +00:00
Erki
7cc7bcfdd2 Implements the pulling of news from the forums (#8887) 2020-05-21 12:45:07 +02:00
Erki
63bf0030f6 Fixes async HTTP for getting pins (#8073)
A few issues:

    Async response enums were bad.
    Async requests didn't handle an unforeseen error properly.
    Get pins were sending an input which would cause a crash of the DLL. (DLL is now fixed to not crash due to this.)
2020-01-23 21:19:01 +02:00
Erki
92c51c47c9 Asynchronous (& synchronous) HTTP (#7989)
Implements Rust-g based HTTP requests. Removes old curl-based C library.

Features:

    Adjustable method, body, headers.
    Support for both HTTP and HTTPS.
    Supports blocking (synchronous) operations, and non-blocking (asynchronous) operations.
2020-01-20 22:25:44 +02:00