summaryrefslogtreecommitdiffstats
path: root/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index f74a816..9cde7d3 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -61,6 +61,20 @@ answer_type Connection::post(const endpoint_variant &endpoint,
endpoint_to_uri(endpoint), parameters);
}
+answer_type Connection::patch(const endpoint_variant &endpoint,
+ const parametermap &parameters)
+{
+ return make_request(http_method::PATCH,
+ endpoint_to_uri(endpoint), parameters);
+}
+
+answer_type Connection::put(const endpoint_variant &endpoint,
+ const parametermap &parameters)
+{
+ return make_request(http_method::PUT,
+ endpoint_to_uri(endpoint), parameters);
+}
+
string Connection::get_new_stream_contents()
{
buffer_mutex.lock();