mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-12-01 08:07:08 +01:00
Update WIP discord and some vendors.
CPR has features disabled and PCRE is fully disabled until updated to new code.
This commit is contained in:
1 parent
e0761bf3b9
commit
9298065cef
1562 files changed
+55070
-76299
No files matched your search
Vendored
+7
-3
@@ -70,7 +70,7 @@ enum http_error {
|
||||
*/
|
||||
struct DPP_EXPORT http_request_completion_t {
|
||||
/** @brief HTTP headers of response */
|
||||
std::map<std::string, std::string> headers;
|
||||
std::multimap<std::string, std::string> headers;
|
||||
/** @brief HTTP status, e.g. 200 = OK, 404 = Not found, 429 = Rate limited */
|
||||
uint16_t status = 0;
|
||||
/** @brief Error status (e.g. if the request could not connect at all) */
|
||||
@@ -149,6 +149,8 @@ public:
|
||||
std::vector<std::string> file_name;
|
||||
/** @brief Upload file contents (binary) */
|
||||
std::vector<std::string> file_content;
|
||||
/** @brief Upload file mime types (application/octet-stream if unspecified) */
|
||||
std::vector<std::string> file_mimetypes;
|
||||
/** @brief Request mime type */
|
||||
std::string mimetype;
|
||||
/** @brief Request headers (non-discord requests only) */
|
||||
@@ -166,8 +168,9 @@ public:
|
||||
* @param audit_reason Audit log reason to send, empty to send none
|
||||
* @param filename The filename (server side) of any uploaded file
|
||||
* @param filecontent The binary content of any uploaded file for the request
|
||||
* @param filemimetype The MIME type of any uploaded file for the request
|
||||
*/
|
||||
http_request(const std::string &_endpoint, const std::string &_parameters, http_completion_event completion, const std::string &_postdata = "", http_method method = m_get, const std::string &audit_reason = "", const std::string &filename = "", const std::string &filecontent = "");
|
||||
http_request(const std::string &_endpoint, const std::string &_parameters, http_completion_event completion, const std::string &_postdata = "", http_method method = m_get, const std::string &audit_reason = "", const std::string &filename = "", const std::string &filecontent = "", const std::string &filemimetype = "");
|
||||
|
||||
/**
|
||||
* @brief Constructor. When constructing one of these objects it should be passed to request_queue::post_request().
|
||||
@@ -179,8 +182,9 @@ public:
|
||||
* @param audit_reason Audit log reason to send, empty to send none
|
||||
* @param filename The filename (server side) of any uploaded file
|
||||
* @param filecontent The binary content of any uploaded file for the request
|
||||
* @param filemimetypes The MIME type of any uploaded file for the request
|
||||
*/
|
||||
http_request(const std::string &_endpoint, const std::string &_parameters, http_completion_event completion, const std::string &_postdata = "", http_method method = m_get, const std::string &audit_reason = "", const std::vector<std::string> &filename = {}, const std::vector<std::string> &filecontent = {});
|
||||
http_request(const std::string &_endpoint, const std::string &_parameters, http_completion_event completion, const std::string &_postdata = "", http_method method = m_get, const std::string &audit_reason = "", const std::vector<std::string> &filename = {}, const std::vector<std::string> &filecontent = {}, const std::vector<std::string> &filemimetypes = {});
|
||||
|
||||
/**
|
||||
* @brief Constructor. When constructing one of these objects it should be passed to request_queue::post_request().
|
||||
|
||||
Reference in new issue
Block a user