ua_cleanup - cleanup a User-Agent handle#

void ua_cleanup(struct user_agent *ua)#

Cleanup User-Agent handle resources.

Parameters:
  • ua – the User-Agent handle created with ua_init()

Example#

struct user_agent *ua = ua_init(NULL);
ua_set_url(ua, "https://www.example.com");

struct ua_conn_attr conn_attr = { .method = HTTP_GET };

ua_easy_run(ua, NULL, NULL, &conn_attr);

ua_cleanup(ua);