about summary refs log blame commit diff stats
path: root/src/loader/curlwrap.nim
blob: 7aef418289beab29c6d595c0162fa1e43ddeb043 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                            
import bindings/curl

template setopt*(curl: CURL, opt: CURLoption, arg: typed) =
  discard curl_easy_setopt(curl, opt, arg)

template setopt*(curl: CURL, opt: CURLoption, arg: string) =
  discard curl_easy_setopt(curl, opt, cstring(arg))

template getinfo*(curl: CURL, info: CURLINFO, arg: typed) =
  discard curl_easy_getinfo(curl, info, arg)