sample/libcurl: add nobody method

This commit is contained in:
Alvaro Miranda Aguilera
2018-01-25 12:13:49 +01:00
committed by Nikolay Igotti
parent 7567c96bc9
commit 532461647a
@@ -19,6 +19,10 @@ class CUrl(val url: String) {
val header = Event<String>()
val data = Event<String>()
fun nobody(){
curl_easy_setopt(curl, CURLOPT_NOBODY, 1L)
}
fun fetch() {
val res = curl_easy_perform(curl)
if (res != CURLE_OK)