summaryrefslogtreecommitdiff
path: root/src/lib/curl/Request.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/curl/Request.hxx')
-rw-r--r--src/lib/curl/Request.hxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/curl/Request.hxx b/src/lib/curl/Request.hxx
index baca4fb8e..ef6ef02c9 100644
--- a/src/lib/curl/Request.hxx
+++ b/src/lib/curl/Request.hxx
@@ -130,6 +130,22 @@ public:
easy.SetURL(url);
}
+ void SetRequestHeaders(struct curl_slist *request_headers) {
+ easy.SetRequestHeaders(request_headers);
+ }
+
+ void SetNoBody(bool value=true) {
+ easy.SetNoBody(value);
+ }
+
+ void SetPost(bool value=true) {
+ easy.SetPost(value);
+ }
+
+ void SetRequestBody(const void *data, size_t size) {
+ easy.SetRequestBody(data, size);
+ }
+
/**
* CurlResponseHandler::OnData() shall throw this to pause the
* stream. Call Resume() to resume the transfer.