ignore empty writes
[project/uclient.git] / uclient.h
index 3520473..65e48b2 100644 (file)
--- a/uclient.h
+++ b/uclient.h
@@ -58,7 +58,7 @@ struct uclient_cb {
 struct uclient *uclient_new(const char *url, const char *auth_str, const struct uclient_cb *cb);
 void uclient_free(struct uclient *cl);
 
-int uclient_set_url(struct uclient *cl, const char *url_str);
+int uclient_set_url(struct uclient *cl, const char *url, const char *auth);
 int uclient_connect(struct uclient *cl);
 
 int uclient_read(struct uclient *cl, char *buf, int len);
@@ -68,8 +68,8 @@ int uclient_request(struct uclient *cl);
 /* HTTP */
 extern const struct uclient_backend uclient_backend_http;
 
+int uclient_http_reset_headers(struct uclient *cl);
 int uclient_http_set_header(struct uclient *cl, const char *name, const char *value);
-int uclient_http_reset_headers(struct uclient *cl, const char *name, const char *value);
 int uclient_http_set_request_type(struct uclient *cl, const char *type);
 bool uclient_http_redirect(struct uclient *cl);