https://github.com/lagunoff/libcurl
Incomplete Haskell bindings to libcurl
https://github.com/lagunoff/libcurl
Last synced: 3 months ago
JSON representation
Incomplete Haskell bindings to libcurl
- Host: GitHub
- URL: https://github.com/lagunoff/libcurl
- Owner: lagunoff
- Created: 2024-07-06T14:48:30.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-07-07T22:44:46.000Z (11 months ago)
- Last Synced: 2024-07-08T16:19:52.412Z (11 months ago)
- Language: Haskell
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Wrote a wrapper for libcurl for a specific use case, the bindings are
incomplete. Needed libcurl because http-client couldn't send HTTP2
requests```hs
import LibCurlmain = do
curl_global_init cURL_GLOBAL_DEFAULT
resp <- curl CurlRequest
{ url = "https://freetestapi.com/api/v1/countries"
, method = CurlGET
, headers = ["Accept: application/json"]
}
print resp
curl_global_cleanup
```