summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/connection.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/connection.hpp b/include/connection.hpp
index 536123e..761f777 100644
--- a/include/connection.hpp
+++ b/include/connection.hpp
@@ -214,6 +214,32 @@ public:
}
/*!
+ * @brief Make a HTTP DELETE call with parameters.
+ *
+ * @param endpoint Endpoint as API::endpoint_type or `std::string_view`.
+ * @param parameters A map of parameters.
+ *
+ *
+ * @since 0.2.0
+ */
+ [[nodiscard]]
+ answer_type del(const endpoint_variant &endpoint,
+ const parametermap &parameters);
+
+ /*!
+ * @brief Make a HTTP DELETE call.
+ *
+ * @param endpoint Endpoint as API::endpoint_type or `std::string_view`.
+ *
+ * @since 0.2.0
+ */
+ [[nodiscard]]
+ inline answer_type del(const endpoint_variant &endpoint)
+ {
+ return del(endpoint, {});
+ }
+
+ /*!
* @brief Copy new stream contents and delete the “original”.
*
* Note that the last event is not necessarily complete, it could happen