diff options
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 14 |
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 ¶meters) +{ + return make_request(http_method::PATCH, + endpoint_to_uri(endpoint), parameters); +} + +answer_type Connection::put(const endpoint_variant &endpoint, + const parametermap ¶meters) +{ + return make_request(http_method::PUT, + endpoint_to_uri(endpoint), parameters); +} + string Connection::get_new_stream_contents() { buffer_mutex.lock(); |