Commit 5d7ff150 authored by Max Kellermann's avatar Max Kellermann Committed by Max Kellermann

curl/Request: add more wrapper methods

parent c767501c
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment