Argentum cURL bindings gives full support for reach http(s), ftp... functionality.
using httpClient{ get, Response }
...
get("https://google.com", app.&onFetched(r Response){
log("Result code={r.status}: response size={r.body.capacity()}");
})
- All operations are performed asynchronously on a separate thread.
- Multiple simultaneous queries share the same resources/DNS caches etc.
- For ssh/https requests the system key-stores are used.
- All operations are cancellable. Then the listener object dies, the operation cancels automatically.
- The
httpClient_Request
object allows to customize requests by adding different verbs, request headers etc. - The
httpClient_Response
object allows to get access to response headers, status code, response body and all request data.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.